@Override boolean equivalent(AbstractSAMHeaderRecord group1, AbstractSAMHeaderRecord group2) { return ((SAMProgramRecord) group1).equivalent((SAMProgramRecord) group2); } }
Assert.assertTrue(outputProgramGroups.get(0).equivalent(program1)); Assert.assertTrue(outputProgramGroups.get(1).equivalent(program2));
final List<SAMProgramRecord> outputProgramGroups = headerMerger.getMergedHeader().getProgramRecords(); Assert.assertEquals(outputProgramGroups.size(), 2); Assert.assertTrue(outputProgramGroups.get(0).equivalent(program1)); Assert.assertTrue(outputProgramGroups.get(1).equivalent(program3));