@Test(expected = NotFoundException.class)
public void badNameNotFound() {

  when(secretController.getSecretByName("non-existent")).thenReturn(Optional.empty());
  resource.retrieveSecret(user, "non-existent");
}