AggregatorImpl implements Aggregator { @Override public Set<ProcessorCapability> getProcessorCapabilities() { Set<ModuleIdentifier> moduleIdentifiers = NetworkManagerRpc.getNetworkManagerModuleIdentifiers(); moduleIdentifiers.addAll(getRequestProcessorManager().getCommonModuleIdentifiers()); Set<ProcessorCapability> processorCapabilities = getRequestProcessorManager().getDeviceProcessorCapabilities(); processorCapabilities.add(new ProcessorCapabilityImpl(COMMON_REQUEST_TYPE, moduleIdentifiers)); return processorCapabilities; } AggregatorImpl(); @Override String dispatchRequest(NetconfClientInfo clientInfo, String netconfRequest); @Override void publishNotification(Notification notification); @Override void publishNotification(String deviceName, Notification notification); @Override void addProcessor(Set<ModuleIdentifier> moduleIdentifiers, GlobalRequestProcessor globalRequestProcessor); @Override void addProcessor(String deviceType, Set<ModuleIdentifier> moduleIdentifiers,
                             DeviceConfigProcessor deviceConfigProcessor); @Override void addProcessor(NotificationProcessor notificationProcessor); @Override void removeProcessor(GlobalRequestProcessor globalRequestProcessor); @Override void removeProcessor(DeviceConfigProcessor deviceConfigProcessor); @Override void removeProcessor(NotificationProcessor notificationProcessor); @Override void removeProcessor(String deviceType, Set<ModuleIdentifier> moduleIdentifiers,
                                DeviceConfigProcessor deviceConfigProcessor); @Override Set<String> getSystemCapabilities(); @Override void registerDeviceManager(DeviceManagementProcessor deviceManagementProcessor); @Override void unregisterDeviceManager(); @Override Set<ProcessorCapability> getProcessorCapabilities(); @Override Set<ModuleIdentifier> getModuleIdentifiers();  }
@Test public void getAllCapabilitiesTest() throws Exception { Set<ProcessorCapability> processorCapabilities = m_aggregator.getProcessorCapabilities(); assertFalse(processorCapabilities.isEmpty()); }