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

    when(aclDAO.getBatchSanitizedSecretsFor(client, ImmutableList.of("secret_name"))).thenReturn(ImmutableList.of());
    when(clientDAO.getClientByName(client.getName())).thenReturn(Optional.of(client));
    when(secretController.getSecretsByName(ImmutableList.of("secret_name")))
            .thenReturn(ImmutableList.of());
    batchSecretDeliveryResource.getBatchSecret(client, BatchSecretRequest.create(ImmutableList.of("secret_name")));
}