### Question:
TsvPrinter implements OutputPrinter { @Override public void finish() throws IOException { printRows(ImmutableList.of(), true); writer.flush(); } TsvPrinter(List<String> fieldNames, Writer writer, boolean header); @Override void printRows(List<List<?>> rows, boolean complete); @Override void finish();  }### Answer:
@Test public void testTsvPrintingNoRows() throws Exception { StringWriter writer = new StringWriter(); List<String> fieldNames = ImmutableList.of("first", "last"); OutputPrinter printer = new TsvPrinter(fieldNames, writer, true); printer.finish(); assertEquals(writer.getBuffer().toString(), "first\tlast\n"); }