{
CmpVertex vertB = new StringVertex("B");vertB.setColour(JUConstants.RED);
CmpVertex vertC = new StringVertex("C");vertC.setColour(JUConstants.BLUE);
AMEquivalenceClass eq =new AMEquivalenceClass(Arrays.asList(new CmpVertex[]{
new StringVertex("A"),vertB,vertC}));
eq.computeMergedColour();
Assert.assertTrue(eq.getMergedVertex().getColour() == JUConstants.RED);
}
/** Tests of comparison/equality of string/deterministic pairs of vertices
* (string-"a"/string "b"/det-"a"/det-"b")