JMXTestUtilities.removeAllMBeanServers();
PageTrackerFactory managerFactory =
new JMXPageTrackerFactory();
// this should have registered an MBean with a server.
PageDetailsManager pdManager1 =
managerFactory.createPageDetailsManager();
PageTrackerFactory ptFactory = new JMXPageTrackerFactory();
CanvasDetails canvasDetails = ptFactory.createCanvasDetails("TITLE",
CanvasType.INCLUSION, "FAKE_THEME", "FAKE_LAYOUT");
PageDetails pageDetails = ptFactory.createPageDetails(canvasDetails, "WIBBLE");
pdManager1.addPageDetails(pageDetails);
ArrayList mBeanServers = MBeanServerFactory.findMBeanServer(null);
// we know this is the only MBeanServer.
// testCreatePageDetailManager() tests for it.