@Test public void doesNotEscapeBase64() throws Exception {

  String name = secretBase64.getName();
  when(aclDAO.getSanitizedSecretFor(client, name))
      .thenReturn(Optional.of(SanitizedSecret.fromSecret(secretBase64)));
  when(secretController.getSecretByName(name))
      .thenReturn(Optional.of(secretBase64));
  SecretDeliveryResponse response = secretDeliveryResource.getSecret(secretBase64.getName(), client);
  assertThat(response.getSecret()).isEqualTo(secretBase64.getSecret());
}