public void testArgument() {
NSAutoreleasePool pool = NSAutoreleasePool.new_();
TestShunt shunt = Rococoa.create("TestShunt", TestShunt.class);
ObjCObjectByReference reference = new ObjCObjectByReference();
shunt.testNSNumberByReference_with(reference, 42);
NSNumber value = reference.getValueAs(NSNumber.class);
assertEquals(42, value.intValue());
// we better have retained the result by the time it gets back
assertEquals(3, value.retainCount());
pool.drain();
assertEquals(2, value.retainCount());
}