for(short i=Byte.MIN_VALUE; i <= Byte.MAX_VALUE; i++)
out.writeByte(i);
ByteArrayDataInputStream in=new ByteArrayDataInputStream(out.buffer());
for(short i=Byte.MIN_VALUE; i <= Byte.MAX_VALUE; i++) {
byte read=in.readByte();
assert i == read;
}
}
public void testUnsignedByte() throws IOException {