@Test
public void testConstructor() {

	CharPipe charPipe = new CharPipe();
	Assert.assertNotNull(charPipe.buffer);
	Assert.assertEquals(8192, charPipe.buffer.length);
	Assert.assertEquals(0, charPipe.count);
	Assert.assertEquals(0, charPipe.readIndex);
	Assert.assertEquals(0, charPipe.writeIndex);
	Assert.assertNotNull(charPipe.bufferLock);
	Assert.assertNotNull(charPipe.notEmpty);
	Assert.assertNotNull(charPipe.notFull);
	charPipe = new CharPipe(1024);
	Assert.assertNotNull(charPipe.buffer);
	Assert.assertEquals(1024, charPipe.buffer.length);
	Assert.assertEquals(0, charPipe.count);
	Assert.assertEquals(0, charPipe.readIndex);
	Assert.assertEquals(0, charPipe.writeIndex);
	Assert.assertNotNull(charPipe.bufferLock);
	Assert.assertNotNull(charPipe.notEmpty);
	Assert.assertNotNull(charPipe.notFull);
	charPipe.close();
}