use Mockito verify approach instead of when approach