int[] numbers={Integer.MIN_VALUE, -322649, -500, 0, 1, 100, 322649, Integer.MAX_VALUE};
for(int i: numbers)
out.writeInt(i);
ByteArrayDataInputStream in=new ByteArrayDataInputStream(out.buffer());
for(int i: numbers) {
int num=in.readInt();
assert num == i;
}
}
public void testLong() throws IOException {