### Question:
NTriplesWriter implements StatementHandler { public void done() throws IOException { out.flush(); } NTriplesWriter(OutputStream out); void statement(String subject, String property, String object,
                        boolean literal); void done();  }### Answer:
@Test public void testEmpty() throws IOException { writer.done(); model = getModel(); assertTrue("empty data didn't produce empty model", model.isEmpty()); }