@Test(expected = NotFoundException.class)
public void findClientByNameNotFound() {

  when(clientDAO.getClientByName("client")).thenReturn(Optional.empty());
  resource.findClient(automation, Optional.of("client"));
}