@Test
public void testTransferNPEs() throws IOException {

	try {
		StreamUtil.transfer(null, null);
		Assert.fail();
	}
	catch (NullPointerException nullPointerException) {
		Assert.assertEquals(
			"Input stream is null", nullPointerException.getMessage());
	}
	try {
		StreamUtil.transfer(
			new UnsyncByteArrayInputStream(new byte[0]), null);
		Assert.fail();
	}
	catch (NullPointerException nullPointerException) {
		Assert.assertEquals(
			"Output stream is null", nullPointerException.getMessage());
	}
}