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

  when(secretDAO.getSecretVersionsByName(eq("name2"), anyInt(), anyInt())).thenReturn(
      Optional.empty());
  resource.secretVersions(user, "name2", 0, 10);
}