Throw Exceptions

Mockito.doThrow(Exception.class).when(service).getEmployeeById(Mockito.any());

Last updated