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

  when(clientDAO.getClientByName("non-existent-client")).thenReturn(Optional.empty());
  resource.getClientByName(user, "non-existent-client");
}