@Test
public void fillNoCalls() {

    String studyId = "22";
    Map<String, Integer> idMapping = new HashMap<>();
    String sampleName = "Sample 1";
    idMapping.put(sampleName, 1);
    AbstractAlleleCalculator calculator = new HBaseAlleleCalculator(studyId, idMapping);
    Variant variant = new Variant("1:100:AT:-");
    StudyEntry studyEntry = new StudyEntry(null, studyId);
    Map<String, Integer> samplePos = new HashMap<>();
    samplePos.put(sampleName, 0);
    studyEntry.setSamplesPosition(samplePos);
    studyEntry.setFormat(Arrays.asList("GT"));
    studyEntry.setSamplesData(Arrays.asList(Arrays.asList("0/1")));
    FileEntry file = new FileEntry("1","0/1", map("FILTER","PASS"));
    studyEntry.setFiles(Collections.singletonList(file));
    variant.setStudies(Collections.singletonList(studyEntry));
    calculator.addVariant(variant);
    assertEquals(0, calculator.getPass(99).size());
    assertEquals(0, calculator.getNotPass(99).size());
    assertEquals(1, calculator.getPass(100).size());
    assertEquals(1, calculator.getPass(101).size());
    assertEquals(0, calculator.getPass(102).size());
    assertEquals(0, calculator.getNotPass(102).size());
    calculator.fillNoCalls(Collections.singleton(sampleName), 99, 103);
    assertEquals(1, calculator.getNotPass(99).size());
    assertEquals(0, calculator.getNotPass(100).size());
    assertEquals(0, calculator.getNotPass(101).size());
    assertEquals(1, calculator.getNotPass(102).size());
}