byte[] bytes = new byte[3];
sm.readBytes(bytes);
assertEquals((byte)4, bytes[0]);
assertEquals((byte)5, bytes[1]);
assertEquals((byte)6, bytes[2]);
assertEquals(-1, sm.readBytes(bytes));
assertEquals((char)7, sm.readChar());
assertEquals(new Double(8.0), new Double(sm.readDouble()));
assertEquals(new Float(9.0), new Float(sm.readFloat()));
assertEquals(10, sm.readInt());
assertEquals(11l, sm.readLong());