@Test(expected = IllegalArgumentException.class)
public void assignThrowsIfInvalidType() throws Exception {

  assignActionConfig.assignType = Arrays.asList("invalid_type");
  assignActionConfig.name = group.getName();
  assignActionConfig.group = group.getName();
  when(keywhizClient.getGroupByName(group.getName())).thenReturn(group);
  assignAction.run();
}