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

  deleteActionConfig.deleteType = Arrays.asList("secret");
  deleteActionConfig.name = secret.getDisplayName();
  when(keywhizClient.getSanitizedSecretByName(secret.getName()))
      .thenThrow(new NotFoundException());
  deleteAction.run();
}