public void testNativeDirectMemoryCompatibility() {
   decimalSerializer.serializeNative(OBJECT, stream, 0);
   ODirectMemoryPointer pointer = new ODirectMemoryPointer(stream);
   try {
     Assert.assertEquals(decimalSerializer.deserializeFromDirectMemory(pointer, 0), OBJECT);
   } finally {
     pointer.free();
   }
 }
 public void testSerializeNative() {
   decimalSerializer.serializeNative(OBJECT, stream, 0);
   Assert.assertEquals(decimalSerializer.deserializeNative(stream, 0), OBJECT);
 }
 public void testFieldSize() {
   Assert.assertEquals(decimalSerializer.getObjectSize(OBJECT), FIELD_SIZE);
 }