groups.addInstance("anyOtherInstanceId", "anyOtherGroupName");
List<AutoScalingGroup> list = groups.asList();
assertEquals(2, list.size());
AutoScalingGroup firstGroup = list.get(0);
assertEquals("anyGroupName", firstGroup.getAutoScalingGroupName());
List<Instance> firstGroupInstances = firstGroup.getInstances();
assertEquals(1, firstGroupInstances.size());
assertEquals("anyInstanceId", firstGroupInstances.get(0).getInstanceId());
AutoScalingGroup secondGroup = list.get(1);
assertEquals("anyOtherGroupName", secondGroup.getAutoScalingGroupName());
List<Instance> secondGroupInstances = secondGroup.getInstances();
assertEquals(1, secondGroupInstances.size());
assertEquals("anyOtherInstanceId", secondGroupInstances.get(0).getInstanceId());
}