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

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