* Verifies that the component exhibits a Group capability,
* and furthermore that its group matches what is set using persistence.
*/
@Test
public void testGroup() {
Group group = testComponent.getCapability(Group.class);
Assert.assertNotNull(group);
Assert.assertNotNull(group.getDiscipline());
testComponent.getCapability(ModelStatePersistence.class).setModelState("test");
Assert.assertEquals(group.getDiscipline(), "test");
Assert.assertEquals(testComponent.getCapability(Group.class).getDiscipline(), "test");
testComponent.getCapability(ModelStatePersistence.class).setModelState("retest");
Assert.assertEquals(group.getDiscipline(), "retest");
Assert.assertEquals(testComponent.getCapability(Group.class).getDiscipline(), "retest");
}