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

  deleteActionConfig.deleteType = Arrays.asList("group");
  deleteActionConfig.name = "Web";
  when(keywhizClient.getGroupByName(deleteActionConfig.name)).thenThrow(new NotFoundException());
  deleteAction.run();
}