@Test
public void testWriteRecordMissingId() throws Exception {

    VcfRecord missingId = new VcfRecord(3L, "22", 16140370L, new String[0], "A", new String[] { "G" }, Double.NaN, new String[] { "PASS" }, info, new String[] { "GT" }, genotypes);
    writeRecord(samples, missingId, writer);
    writer.close();
    assertEquals("22\t16140370\t.\tA\tG\t.\tPASS\t.\tGT\t1|1" + System.lineSeparator(), outputStream.toString());
}