DataObject { public byte[] serialize() { return this.serialize(DEFAULT_CAPACITY); } DataObject(); boolean contains(byte key); DataWrapper get(byte key); DataObject set(byte key, Object value); void clear(); byte[] serialize(); byte[] serialize(int capacity); static DataObject toDataObject(byte[] src); @Override String toString();  }
@Test public void SerializeTest() { GeneralTest(aByte, (byte) 0, (byte) 119); GeneralTest(aBool, (byte) 0, false); GeneralTest(aShort, (byte) 0, (short) 17433); GeneralTest(aInt, (byte) 0, 64246131); GeneralTest(aLong, (byte) 0, 46246461213157L); GeneralTest(aFloat, (byte) 0, 366.244F); GeneralTest(aDouble, (byte) 0, 125.4363146); GeneralTest(aString, (byte) 0, "This is test!!"); }