@Test
public void testCleanUp() throws IOException {

	StreamUtil.cleanUp(new Closeable[] {null});
	IOException ioException1 = new IOException();
	IOException ioException2 = new IOException();
	try {
		StreamUtil.cleanUp(
			() -> {
				throw ioException1;
			},
			() -> {
			},
			() -> {
				throw ioException2;
			});
		Assert.fail();
	}
	catch (IOException ioException3) {
		Assert.assertSame(ioException1, ioException3);
		Throwable[] throwables = ioException3.getSuppressed();
		Assert.assertEquals(
			Arrays.toString(throwables), 1, throwables.length);
		Assert.assertSame(ioException2, throwables[0]);
	}
}