@Test
public void doesNotEscapeBase64() throws Exception {

    String name = secretBase64.getName();
    when(aclDAO.getBatchSanitizedSecretsFor(client, ImmutableList.of(name)))
            .thenReturn(ImmutableList.of(SanitizedSecret.fromSecret(secretBase64)));
    when(clientDAO.getClientByName(client.getName())).thenReturn(Optional.of(client));
    when(secretController.getSecretsByName(ImmutableList.of(name)))
            .thenReturn(ImmutableList.of(secretBase64));
    List<SecretDeliveryResponse> response = batchSecretDeliveryResource.getBatchSecret(client, BatchSecretRequest.create(ImmutableList.of(secretBase64.getName())));
    assertThat(response.size()).isEqualTo(1);
    assertThat(response.get(0).getSecret()).isEqualTo(secretBase64.getSecret());
}