@Test
public void unassignCallsUnassignForSecret() throws Exception {

  unassignActionConfig.unassignType = Arrays.asList("secret");
  unassignActionConfig.name = secret.getDisplayName();
  unassignActionConfig.group = group.getName();
  when(keywhizClient.getGroupByName(group.getName())).thenReturn(group);
  when(keywhizClient.getSanitizedSecretByName(secret.getName()))
      .thenReturn(sanitizedSecret);
  when(keywhizClient.groupDetailsForId(group.getId())).thenReturn(groupDetailResponse);
  unassignAction.run();
  verify(keywhizClient).revokeSecretFromGroupByIds(secret.getId(), group.getId());
}