@Test
public void testMissingGenotypeField() throws Exception {

    VcfRecord record = records(createInputStream("missing-genotype-field.vcf")).iterator().next();
    assertNotNull(record);
    assertEquals("0|0", record.getGenotypes().get("NA20828").getGt());
    assertEquals(ImmutableList.of("0|0"), record.getGenotypes().get("NA20828").getFields().get("GT"));
    // DS is missing, i.e. 0|0:.:-0.02,-1.38,-5.00
    assertTrue(record.getGenotypes().get("NA20828").getFields().get("DS").isEmpty());
    assertEquals(ImmutableList.of("-0.02", "-1.38", "-5.00"), record.getGenotypes().get("NA20828").getFields().get("GL"));
}