@Test
public void testClose() throws IOException {

	final AtomicBoolean closeAtomicBoolean = new AtomicBoolean();
	DummyWriter dummyWriter = new DummyWriter() {
		@Override
		public void close() {
			closeAtomicBoolean.set(true);
		}
	};
	try (WriterOutputStream writerOutputStream = new WriterOutputStream(
			dummyWriter)) {
		Assert.assertFalse(closeAtomicBoolean.get());
	}
	Assert.assertTrue(closeAtomicBoolean.get());
}