use Mockito to mock the repository and verify that .create is called