destinations.add("fedora.apim.update");
mdMap.put(MessageType.apimUpdate.toString(), destinations);
Messaging msg = new MessagingImpl(getBaseURL(), mdMap, jmsMgr);
Object[] invocationHandlers =
{new NotificationInvocationHandler(msg)};
Management mgmt = new MockManagementDelegate();
Management proxy =
(Management) ProxyFactory
.getProxy(mgmt, invocationHandlers);
proxy.purgeObject(new MockContext(), "demo:test", null);
} catch (Exception e) {
listener.interrupt();
throw e;
}
// await message receipt & evaluation