System.out.println("in = " + in);
assert in.available() == 0 && in.capacity() == 2000;
in.write(new byte[]{'b', 'e', 'l', 'a'});
System.out.println("in = " + in);
assert in.available() == 4 && in.capacity() == 2000;
}
public void testRead() throws IOException {
final BlockingInputStream in=new BlockingInputStream(100);