@Test
public void testCopy() throws IOException {

	final byte[] array = new byte[] { 1, 2, 3 };
	final ByteArrayInputStream bios = new ByteArrayInputStream(array);
	final ByteArrayOutputStream baos = new ByteArrayOutputStream();
	IOUtils.copy(bios, baos);
	Assert.assertArrayEquals(array, baos.toByteArray());
}