@Test public void testMemoryManagement() {
// we were autorelease'ing the proxy - so that this failed
NSNotificationCenter notificationCentre = NSNotificationCenter.CLASS.defaultCenter();
final ID observer = proxy.id();
notificationCentre.addObserver_selector_name_object(
observer,
Foundation.selector("notify:"),
"MyNotification",
null);
pool.drain();