@Test(expected = AssertionError.class)
public void listVersionsThrowsIfSecretDoesNotExist() throws Exception {

  listVersionsActionConfig.name = secretV2.getDisplayName();
  when(keywhizClient.getSanitizedSecretByName(secretV2.getDisplayName())).thenThrow(
      new KeywhizClient.NotFoundException());
  listVersionsAction.run();
}