VcfWriter { public static void writeHeader(final VcfHeader header, final PrintWriter writer) { checkNotNull(header); checkNotNull(writer); for (String meta : header.getMeta()) { writer.println(meta); } } private  VcfWriter(); static void write(final VcfHeader header,
                             final List<VcfSample> samples,
                             final List<VcfRecord> records,
                             final PrintWriter writer); static void writeHeader(final VcfHeader header, final PrintWriter writer); static void writeColumnHeader(final List<VcfSample> samples, final PrintWriter writer); static void writeRecords(final List<VcfSample> samples,
                                    final List<VcfRecord> records,
                                    final PrintWriter writer); static void writeRecord(final List<VcfSample> samples, final VcfRecord record, final PrintWriter writer);  }
@Test(expected=NullPointerException.class) public void testWriteHeaderNullHeader() throws Exception { writeHeader(null, writer); }
@Test(expected=NullPointerException.class) public void testWriteHeaderNullWriter() throws Exception { writeHeader(header, null); }
@Test public void testWriteHeader() throws Exception { writeHeader(header, writer); writer.close(); assertEquals("##fileformat=VCFv4.1" + System.lineSeparator(), outputStream.toString()); }