@Test(expected = NotFoundException.class)
public void returnsNotFoundWhenClientDoesNotExist() throws Exception {

  when(aclDAO.getSanitizedSecretFor(client, secret.getName())).thenReturn(Optional.empty());
  when(clientDAO.getClientByName(client.getName())).thenReturn(Optional.empty());
  when(secretController.getSecretByName(secret.getName()))
      .thenReturn(Optional.of(secret));
  secretDeliveryResource.getSecret(secret.getName(), client);
}