@Test public void checkChangeRequestCreated() { CORootController rootController = CORootController.setupDummyData(); Baseline bl = rootController.getBaselinesFromVSCI(rootController.getTrunk().getSCIs().get(0)).get(0); ChangeRequest c = new ChangeRequest(); c.setVersion(bl); c.setProblem("Test Problem"); c.setSolution("test solution"); rootController.print(bl.getChanges()); // If when we return a collection of all change requests, we can safely // assume that the change request was created correctly. assertTrue(rootController.getChangeRequests().contains(c)); }