@Test public void closePutsSeparatorAtTheEnd() throws Exception { IAccessEvent event = mockBasicILoggingEvent(); encoder.doEncode(event); encoder.close(); closeQuietly(outputStream); assertThat(outputStream.toString(), Matchers.endsWith(LINE_SEPARATOR)); }