### Question:
ActionUiControlGroup implements Sc2ApiSerializable<Ui.ActionControlGroup> { public static ActionUiControlGroupSyntax controlGroup() { return new Builder(); } private  ActionUiControlGroup(Builder builder); private  ActionUiControlGroup(Ui.ActionControlGroup sc2ApiActionControlGroup); static ActionUiControlGroupSyntax controlGroup(); static ActionUiControlGroup from(Ui.ActionControlGroup sc2ApiActionControlGroup); @Override Ui.ActionControlGroup toSc2Api(); Action getAction(); int getIndex(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test void throwsExceptionWhenIndexIsNotInValidRange() { assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> controlGroup().on(-1).withMode(APPEND).build()) .withMessage("control group index has value -1 and is lower than 0"); assertThatExceptionOfType(IllegalArgumentException.class) .isThrownBy(() -> controlGroup().on(10).withMode(APPEND).build()) .withMessage("control group index has value 10 and is greater than 9"); }