ChannelManager extends ComponentManagerImpl<Channel> implements ChannelManagerMBean, ChannelRuntimeManager { @Override public boolean addChildren(Collection<WorkflowRuntimeManager> coll) throws CoreException { throw new UnsupportedOperationException(); } private  ChannelManager();  ChannelManager(Channel c, AdapterManager owner);   ChannelManager(Channel c, AdapterManager owner, boolean skipBackRef); @Override ObjectName createObjectName(); @Override long requestStartTime(); @Override long requestStopTime(); @Override Collection<ObjectName> getChildren(); @Override boolean addChild(WorkflowRuntimeManager cmb); @Override boolean removeChild(WorkflowRuntimeManager cmb); @Override boolean addChildren(Collection<WorkflowRuntimeManager> coll); @Override boolean removeChildren(Collection<WorkflowRuntimeManager> coll); @Override Channel getWrappedComponent(); @Override AdapterManager getParent(); @Override boolean equals(Object o); @Override String toString(); @Override int hashCode(); @Override Collection<BaseComponentMBean> getAllDescendants(); @Override String getParentId(); @Override ObjectName getParentObjectName(); @Override String createObjectHierarchyString(); @Override Collection<ObjectName> getChildRuntimeInfoComponents(); @Override boolean addChildJmxComponent(ChildRuntimeInfoComponent comp); @Override boolean removeChildJmxComponent(ChildRuntimeInfoComponent comp); @Override void registerMBean(); @Override void unregisterMBean(); @Override ObjectName addWorkflow(String xml); @Override boolean removeWorkflow(String id); @Override void childUpdated(); @Override MBeanNotificationInfo[] getNotificationInfo();  }
@Test public void testAddChildren() throws Exception { String adapterName = this.getClass().getSimpleName() + "." + getName(); Adapter adapter = createAdapter(adapterName); AdapterManager adapterManager = new AdapterManager(adapter); Channel channel = createChannel(getName()); ChannelManager channelManager = new ChannelManager(channel, adapterManager); DisconnectedWorkflowManager child1 = new DisconnectedWorkflowManager(); DisconnectedWorkflowManager child2 = new DisconnectedWorkflowManager(); List<WorkflowRuntimeManager> workflows = new ArrayList<WorkflowRuntimeManager>(Arrays.asList(new DisconnectedWorkflowManager[] { child1, child2 })); try { channelManager.addChildren(workflows); fail(); } catch (UnsupportedOperationException expected) { } }