}
public void testAllTypes() {
DataOutput dataOutput = new DataOutputImpl();
boolean b = random.nextBoolean();
dataOutput.writeBoolean(b);
byte[] bytes = new byte[10];
random.nextBytes(bytes);
dataOutput.writeByte(bytes[0]);
dataOutput.writeBytes(bytes);
double d = random.nextDouble();