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

  addActionConfig.addType = Arrays.asList("secret");
  addActionConfig.name = secret.getDisplayName();
  when(keywhizClient.getSanitizedSecretByName(secret.getName()))
      .thenReturn(sanitizedSecret);
  addAction.run();
}