source = new InputStreamSource (new Stream (new ByteArrayInputStream (new byte[] { (byte)0x42, (byte)0x62 })), null);
assertTrue ("ready?", !source.ready ());
assertTrue ("erroneous character", 'B' == source.read ());
assertTrue ("not ready", source.ready ());
assertTrue ("erroneous character", 'b' == source.read ());
assertTrue ("ready?", !source.ready ());
assertTrue ("extra character", -1 == source.read ());
}
/**
* Test that the same characters are returned as with another reader.