/** Tests equality for VertexIDs with string and numerical IDs, checking that cached representation works. */
@Test
public void testVertexIDEquals_cached()
{
VertexID p=new VertexID(VertKind.POSITIVE,5), q=new VertexID(idP5),
differentA=new VertexID(VertKind.POSITIVE,6), differentB=new VertexID(VertKind.INIT,9);
equalityTestingHelper(p, p, differentA, differentB);// at this point, numeric ID will have a textual representation added
equalityTestingHelper(p, q, differentA, differentB);
equalityTestingHelper(p, new VertexID(idP5), differentA, differentB);
equalityTestingHelper(new VertexID(idP5), q, differentA, differentB);
equalityTestingHelper(new VertexID(idP5), q, new VertexID(idP6), new VertexID(VertKind.POSITIVE,6));
equalityTestingHelper(new VertexID(idP5), q, new VertexID(idN5), new VertexID(VertKind.POSITIVE,6));
}