### Question:
LDIFFormatWriter implements FormatWriter { public void close() { } LDIFFormatWriter(final OutputStream outputStream); void printEntry(final Entry entry); void close();  }### Answer:
@Test public void closeDoesNotAffectOutputStream() throws Exception { formatWriter.close(); verifyNoMoreInteractions(outputStream); }