public void testCrossComparison() throws Exception {
// initialization
Random random = new Random();
long testSeed = ContinuesRandomGenerator.getRandomSeed();
long seqNo = random.nextInt(MAX_SEQ)+ContinuesRandomGenerator.MIN_SEQUENCENO;
ContinuesRandomGenerator testGen1 = new ContinuesRandomGenerator(testSeed, seqNo);
ContinuesRandomGenerator testGen2 = new ContinuesRandomGenerator(testSeed, seqNo);
for (int i=0;i<NO_TESTS_PER_CASE;i++){
long sequenceNO = random.nextInt((int) (ContinuesRandomGenerator.MAX_SEQUENCENO-1L))+1L;
assertEquals(testGen1.getInsertGroup(sequenceNO).lookUpCompareable(),testGen2.getLookupGroup(sequenceNO).toString());
assertEquals(testGen2.getInsertGroup(sequenceNO).lookUpCompareable(),testGen1.getLookupGroup(sequenceNO).toString());
}
}