@Test public void findSecretByNameAndVersion() {

  when(secretController.getSecretByName(secret.getName()))
      .thenReturn(Optional.of(secret));
  assertThat(resource.retrieveSecret(user, "name"))
      .isEqualTo(SanitizedSecret.fromSecret(secret));
}