final File onlyHG01879VCF = executeTest("testOnlyEmitSample", onlyHG01879).first.get(0);
final List<VariantContext> onlyHG01879VCs = GATKVCFUtils.readVCF(onlyHG01879VCF).getSecond();
Assert.assertEquals(allSampleVCs.size(), onlyHG01879VCs.size());
for ( int i = 0; i < allSampleVCs.size(); i++ ) {
final VariantContext allSampleVC = allSampleVCs.get(i);
final VariantContext onlyHG01879VC = onlyHG01879VCs.get(i);
if ( allSampleVC == null ) {
Assert.assertNull(onlyHG01879VC);
} else {
Assert.assertNotNull(onlyHG01879VC);
Assert.assertTrue(allSampleVC.getGenotypes().size() > 1, "All samples should have had more than 1 genotype, but didn't");
Assert.assertEquals(onlyHG01879VC.getGenotypes().size(), 1, "Should have found a single sample genotype, but didn't");
Assert.assertEquals(onlyHG01879VC.hasGenotype("HG01879"), true);
Assert.assertEquals(allSampleVC.getStart(), onlyHG01879VC.getStart());
Assert.assertEquals(allSampleVC.getChr(), onlyHG01879VC.getChr());
Assert.assertEquals(allSampleVC.getEnd(), onlyHG01879VC.getEnd());
Assert.assertEquals(allSampleVC.getFilters(), onlyHG01879VC.getFilters());
Assert.assertEquals(allSampleVC.getAlleles(), onlyHG01879VC.getAlleles());
Assert.assertEquals(allSampleVC.getAttributes(), onlyHG01879VC.getAttributes());
Assert.assertEquals(allSampleVC.getPhredScaledQual(), onlyHG01879VC.getPhredScaledQual());
final Genotype allG = allSampleVC.getGenotype("HG01879");
final Genotype onlyG = onlyHG01879VC.getGenotype("HG01879");
Assert.assertEquals(allG.getAD(), onlyG.getAD());
Assert.assertEquals(allG.getDP(), onlyG.getDP());
Assert.assertEquals(allG.getAlleles(), onlyG.getAlleles());
Assert.assertEquals(allG.getPL(), onlyG.getPL());
Assert.assertEquals(allG.toString(), onlyG.toString());