// pre-conditions
final IApplication app = domain.getApplicationByName("springeap6");
// operation
final Collection<IGearGroup> gearGroups = app.getGearGroups();
// verifications
assertThat(new GearGroupsAssert(gearGroups)).hasSize(2);
assertThat(new GearGroupsAssert(gearGroups)).assertGroup("514207b84382ec1fef0000ab")
.hasUUID("514207b84382ec1fef0000ab")
.hasAdditionalStorageSize(8)
.assertGear("514207b84382ec1fef000098").inState(new GearState("idle"))
.assertGear("514207b84382ec1fef000098").hasSshUrl("ssh://52380549e0b8cd1e0e000032@springeap6-foobarz.rhcloud.com")
.assertGear("5146f047500446f12d00002e").inState(new GearState("building"))
.hasCartridges("jbosseap-6", "mongodb-2.2");
assertThat(new GearGroupsAssert(gearGroups)).assertGroup("514212ce500446b64e0000c0")
.hasUUID("514212ce500446b64e0000c0")
.assertGear("514212ce500446b64e0000b4").hasSshUrl("ssh://523809b75973ca569600019b@523809b75973ca569600019b-foobarz.rhcloud.com")
.assertGear("514212ce500446b64e0000b4").inState(new GearState("deploying"))
.hasCartridges("mongodb-2.2");
}