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

  deleteActionConfig.deleteType = Arrays.asList("client");
  deleteActionConfig.name = "nonexistent-client-name";
  when(keywhizClient.getClientByName(deleteActionConfig.name)).thenThrow(new NotFoundException());
  deleteAction.run();
}