AggregatorImpl implements Aggregator { @Override public Set<String> getSystemCapabilities() { Set<String> capabilities = new HashSet<>(); capabilities.add(NetconfResources.NETCONF_BASE_CAP_1_0); capabilities.add(NetconfResources.NETCONF_BASE_CAP_1_1); capabilities.addAll(getRequestProcessorManager().getAllProcessorsCapability()); return capabilities; } 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 getModuleCapabilityTest() throws Exception { Set<String> capabilitiesSet = m_aggregator.getSystemCapabilities(); assertFalse(capabilitiesSet.isEmpty()); }