HspWriter { public static void write(final HighScoringPair hsp, final PrintWriter writer) { checkNotNull(hsp); checkNotNull(writer); writer.println(hsp.toString()); } private  HspWriter(); static void write(final HighScoringPair hsp, final PrintWriter writer); static void write(final Iterable<HighScoringPair> hsps, final PrintWriter writer);  }
@Test(expected=NullPointerException.class) public void testWriteNullHsp() throws Exception { write((HighScoringPair) null, writer); }
@Test(expected=NullPointerException.class) public void testWriteNullWriter() throws Exception { write(hsp, null); }
@Test public void testWrite() throws Exception { write(hsp, writer); assertEquals("source\ttarget\t99.0\t100\t1\t2\t1\t100\t2\t101\t0.1\t1.0", stringWriter.toString().trim()); }
@Test(expected=NullPointerException.class) public void testWriteIterableNullHsps() throws Exception { write((Iterable<HighScoringPair>) null, writer); }
@Test(expected=NullPointerException.class) public void testWriteIterableNullWriter() throws Exception { write(hsps, null); }
@Test public void testWriteIterable() throws Exception { write(hsps, writer); assertEquals("source\ttarget\t99.0\t100\t1\t2\t1\t100\t2\t101\t0.1\t1.0", stringWriter.toString().trim()); }