WorkflowManager extends ComponentManagerImpl<Workflow> implements WorkflowManagerMBean, WorkflowRuntimeManager { @Override public ObjectName getParentObjectName() throws MalformedObjectNameException { return parent.createObjectName(); } private  WorkflowManager();  WorkflowManager(Workflow w, ChannelManager owner);   WorkflowManager(Workflow w, ChannelManager owner, boolean skipBackRefs); @Override ObjectName createObjectName(); @Override Workflow getWrappedComponent(); @Override long requestStartTime(); @Override long requestStopTime(); @Override @Deprecated SerializableAdaptrisMessage injectMessageWithReply(SerializableAdaptrisMessage msgToProcess); @Override @Deprecated boolean injectMessage(SerializableAdaptrisMessage msgToProcess); @Override void processAsync(SerializableMessage msgToProcess); @Override SerializableMessage process(SerializableMessage msgToProcess); @Override boolean equals(Object o); @Override String toString(); @Override int hashCode(); @Override ChannelManager getParent(); @Override String getParentId(); @Override ObjectName getParentObjectName(); @Override Collection<ObjectName> getChildRuntimeInfoComponents(); @Override boolean addChildJmxComponent(ChildRuntimeInfoComponent comp); @Override boolean removeChildJmxComponent(ChildRuntimeInfoComponent comp); @Override String createObjectHierarchyString(); @Override Collection<BaseComponentMBean> getAllDescendants(); @Override void registerMBean(); @Override void unregisterMBean(); @Override MBeanNotificationInfo[] getNotificationInfo();  }
@Test public void testGetParentObjectName() throws Exception { String adapterName = this.getClass().getSimpleName() + "." + getName(); Adapter adapter = createAdapter(adapterName); AdapterManager adapterManager = new AdapterManager(adapter); new AdapterManager(createAdapter(adapterName)); Channel channel = createChannel("c1"); ChannelManager channelManager = new ChannelManager(channel, adapterManager); Workflow workflow = createWorkflow("w1"); WorkflowManager workflowManager = new WorkflowManager(workflow, channelManager); assertEquals(channelManager, workflowManager.getParent()); assertTrue(channelManager == workflowManager.getParent()); assertEquals(channelManager.createObjectName(), workflowManager.getParentObjectName()); }