# Throw Exceptions

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