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

    ImmutableList<String> secretnames = ImmutableList.of(secret.getName(), "secretthatdoesnotexist");
    BatchSecretRequest req = BatchSecretRequest.create(secretnames);
    when(aclDAO.getBatchSanitizedSecretsFor(client, secretnames))
            .thenReturn(List.of());
    when(clientDAO.getClientByName(client.getName())).thenReturn(Optional.of(client));
    when(secretController.getSecretsByName(secretnames))
            .thenReturn(List.of(secret));
    batchSecretDeliveryResource.getBatchSecret(client, req);
}