BedWriter { public static void write(final BedRecord record, final PrintWriter writer) { checkNotNull(record); checkNotNull(writer); writer.println(record.toString()); } private  BedWriter(); static void write(final BedRecord record, final PrintWriter writer); static void write(final Iterable<BedRecord> records, final PrintWriter writer);  }
@Test(expected=NullPointerException.class) public void testWriteNullRecord() throws Exception { write((BedRecord) null, writer); }
@Test(expected=NullPointerException.class) public void testWriteNullWriter() throws Exception { write(record, null); }
@Test public void testWrite() throws Exception { write(record, writer); assertEquals("chr1\t11873\t14409\tuc001aaa.3\t0\t+\t11873\t11873\t0\t3\t354,109,1189\t0,739,1347", stringWriter.toString().trim()); }
@Test(expected=NullPointerException.class) public void testWriteIterableNullRecords() throws Exception { write((Iterable<BedRecord>) null, writer); }
@Test(expected=NullPointerException.class) public void testWriteIterableNullWriter() throws Exception { write(records, null); }
@Test public void testWriteIterable() throws Exception { write(records, writer); assertEquals("chr1\t11873\t14409\tuc001aaa.3\t0\t+\t11873\t11873\t0\t3\t354,109,1189\t0,739,1347", stringWriter.toString().trim()); }