@Test
public void testWriteRecords() throws Exception {

    writeRecords(samples, records, writer);
    writer.close();
    assertEquals("22\t16140370\trs2096606\tA\tG\t100\tPASS\t.\tGT\t1|1" + System.lineSeparator(), outputStream.toString());
}