@Test public void includesTheClient() {

  when(clientDAO.getClientById(1)).thenReturn(Optional.of(client));
  when(aclDAO.getGroupsFor(client)).thenReturn(Collections.emptySet());
  when(aclDAO.getSanitizedSecretsFor(client)).thenReturn(ImmutableSet.of());
  ClientDetailResponse response = resource.getClient(user, new LongParam("1"));
  assertThat(response.id).isEqualTo(client.getId());
  assertThat(response.name).isEqualTo(client.getName());
  assertThat(response.description).isEqualTo(client.getDescription());
  assertThat(response.creationDate).isEqualTo(client.getCreatedAt());
  assertThat(response.createdBy).isEqualTo(client.getCreatedBy());
  assertThat(response.updateDate).isEqualTo(client.getUpdatedAt());
  assertThat(response.updatedBy).isEqualTo(client.getUpdatedBy());
}