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

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