}
@Test
public void testGetMonitorableNames_MonitorableAvailable() throws Exception {
HashMap<ServiceReference, Monitorable> map = new HashMap<ServiceReference, Monitorable>();
map.put(new MonitorableMockServiceReference("com.acme.pid2"), new MockMonitorable());
map.put(new MonitorableMockServiceReference("com.acme.pid3"), new MockMonitorable());
map.put(new MonitorableMockServiceReference("com.acme.pid1"), new MockMonitorable());
osgiVisitor.setReferences(map);
MonitorAdmin monitorAdmin = new MonitorAdminImpl(logVisitor, common, bundle);
String[] monitorableNames = monitorAdmin.getMonitorableNames();