@Test
public void testConstructor() throws IOException {

	int size = 10;
	UnsyncBufferedInputStream unsyncBufferedInputStream =
		new UnsyncBufferedInputStream(
			new ByteArrayInputStream(new byte[size]));
	Assert.assertEquals(size, unsyncBufferedInputStream.available());
	unsyncBufferedInputStream = new UnsyncBufferedInputStream(
		new ByteArrayInputStream(new byte[size]), _SIZE);
	Assert.assertEquals(size, unsyncBufferedInputStream.available());
	try {
		new UnsyncBufferedInputStream(
			new ByteArrayInputStream(new byte[size]), 0);
		Assert.fail();
	}
	catch (IllegalArgumentException illegalArgumentException) {
		Assert.assertEquals(
			"Size is less than 1", illegalArgumentException.getMessage());
	}
	try {
		new UnsyncBufferedInputStream(
			new ByteArrayInputStream(new byte[size]), -1);
		Assert.fail();
	}
	catch (IllegalArgumentException illegalArgumentException) {
		Assert.assertEquals(
			"Size is less than 1", illegalArgumentException.getMessage());
	}
}