bar acutal = new bar();
memmove(acutal, ptr, bar.SIZEOF);
assertEquals(expected, acutal);
Callback callback = new Callback(this, "instanceCallback", 1);
callmeback(callback.getAddress());
assertEquals(69, instanceCallbackResult);
callback.dispose();
long r1 = Range.Range();
Range.dump(r1);
long r2 = Range.Range(10,100);
Range.dump(r2);
Range.delete(r1);
Range.delete(r2);
callback = new Callback(ExampleTest.class, "staticCallback", 1);
callmeback(callback.getAddress());
assertEquals(69, staticCallbackResult);
callback.dispose();
// Heap memory is not GCed, we must manually free it.
free(ptr);
passingtheenv("Hiram", null);