Program: 91878
Project: 91878
Buggy source:
/** 
 * Run the TraceControlComponent.
 * @throws Exception This will fail the test
 */
@Test public void testComponentProperties() throws Exception {
  TestRemoteSystemProxy proxy=new TestRemoteSystemProxy();
  URL location=FileLocator.find(FrameworkUtil.getBundle(this.getClass()),new Path(DIRECTORY + File.separator + TEST_STREAM),null);
  File testfile=new File(FileLocator.toFileURL(location).toURI());
  proxy.setTestFile(testfile.getAbsolutePath());
  proxy.setScenario(SCEN_LIST_INFO_TEST);
  ITraceControlComponent root=TraceControlTestFacility.getInstance().getControlView().getTraceControlRoot();
  ISystemRegistry registry=RSECorePlugin.getTheSystemRegistry();
  ISystemProfile profile=registry.createSystemProfile("String_Node_Str",true);
  IHost host=registry.createLocalHost(profile,"String_Node_Str","String_Node_Str");
  TargetNodeComponent node=new TargetNodeComponent("String_Node_Str",root,host,proxy);
  root.addChild(node);
  node.connect();
  TraceControlTestFacility.getInstance().waitForJobs();
  Object adapter=node.getAdapter(IPropertySource.class);
  assertNotNull(adapter);
  assertTrue(adapter instanceof TargetNodePropertySource);
  TargetNodePropertySource source=(TargetNodePropertySource)adapter;
  assertNull(source.getEditableValue());
  assertFalse(source.isPropertySet(TargetNodePropertySource.TARGET_NODE_NAME_PROPERTY_ID));
  assertNotNull(source.getPropertyDescriptors());
  assertEquals("String_Node_Str",source.getPropertyValue(TargetNodePropertySource.TARGET_NODE_NAME_PROPERTY_ID));
  assertEquals("String_Node_Str",source.getPropertyValue(TargetNodePropertySource.TARGET_NODE_ADDRESS_PROPERTY_ID));
  assertEquals(TargetNodeState.CONNECTED.name(),source.getPropertyValue(TargetNodePropertySource.TARGET_NODE_STATE_PROPERTY_ID));
  assertEquals("String_Node_Str",source.getPropertyValue(TargetNodePropertySource.TARGET_NODE_VERSION_PROPERTY_ID));
  assertNull(source.getPropertyValue("String_Node_Str"));
  adapter=node.getAdapter(IChannelInfo.class);
  assertNull(adapter);
  ITraceControlComponent[] groups=node.getChildren();
  assertNotNull(groups);
  assertEquals(2,groups.length);
  ITraceControlComponent[] providers=groups[0].getChildren();
  assertNotNull(providers);
  assertEquals(3,providers.length);
  KernelProviderComponent kernelProvider=(KernelProviderComponent)providers[0];
  adapter=kernelProvider.getAdapter(IPropertySource.class);
  assertNotNull(adapter);
  assertTrue(adapter instanceof KernelProviderPropertySource);
  KernelProviderPropertySource kernelSource=(KernelProviderPropertySource)adapter;
  assertNotNull(kernelSource.getPropertyDescriptors());
  assertEquals("String_Node_Str",kernelSource.getPropertyValue(KernelProviderPropertySource.KERNEL_PROVIDER_NAME_PROPERTY_ID));
  UstProviderComponent ustProvider=(UstProviderComponent)providers[1];
  adapter=ustProvider.getAdapter(IPropertySource.class);
  assertNotNull(adapter);
  assertTrue(adapter instanceof UstProviderPropertySource);
  UstProviderPropertySource ustSource=(UstProviderPropertySource)adapter;
  assertNotNull(ustSource.getPropertyDescriptors());
  assertEquals("String_Node_Str",ustSource.getPropertyValue(UstProviderPropertySource.UST_PROVIDER_NAME_PROPERTY_ID));
  assertEquals(String.valueOf(9379),ustSource.getPropertyValue(UstProviderPropertySource.UST_PROVIDER_PID_PROPERTY_ID));
  ITraceControlComponent[] events=ustProvider.getChildren();
  assertNotNull(events);
  assertEquals(2,events.length);
  BaseEventComponent baseEventInfo=(BaseEventComponent)events[0];
  assertNotNull(baseEventInfo);
  adapter=baseEventInfo.getAdapter(IPropertySource.class);
  assertNotNull(adapter);
  assertTrue(adapter instanceof BaseEventPropertySource);
  BaseEventPropertySource baseSource=(BaseEventPropertySource)adapter;
  assertNotNull(baseSource.getPropertyDescriptors());
  assertEquals("String_Node_Str",baseSource.getPropertyValue(BaseEventPropertySource.BASE_EVENT_NAME_PROPERTY_ID));
  assertEquals(TraceEventType.TRACEPOINT.name(),baseSource.getPropertyValue(BaseEventPropertySource.BASE_EVENT_TYPE_PROPERTY_ID));
  assertEquals(TraceLogLevel.TRACE_DEBUG_MODULE.name(),baseSource.getPropertyValue(BaseEventPropertySource.BASE_EVENT_LOGLEVEL_PROPERTY_ID));
  baseEventInfo=(BaseEventComponent)events[1];
  assertNotNull(baseEventInfo);
  adapter=baseEventInfo.getAdapter(IPropertySource.class);
  assertNotNull(adapter);
  assertTrue(adapter instanceof BaseEventPropertySource);
  baseSource=(BaseEventPropertySource)adapter;
  assertNotNull(baseSource.getPropertyDescriptors());
  assertEquals("String_Node_Str",baseSource.getPropertyValue(BaseEventPropertySource.BASE_EVENT_FIELDS_PROPERTY_ID));
  ITraceControlComponent[] sessions=groups[1].getChildren();
  assertNotNull(sessions);
  assertEquals(2,sessions.length);
  TraceSessionComponent session=(TraceSessionComponent)sessions[1];
  adapter=session.getAdapter(IPropertySource.class);
  assertNotNull(adapter);
  assertTrue(adapter instanceof TraceSessionPropertySource);
  TraceSessionPropertySource sessionSource=(TraceSessionPropertySource)adapter;
  assertNotNull(sessionSource.getPropertyDescriptors());
  assertEquals("String_Node_Str",sessionSource.getPropertyValue(TraceSessionPropertySource.TRACE_SESSION_NAME_PROPERTY_ID));
  assertEquals("String_Node_Str",sessionSource.getPropertyValue(TraceSessionPropertySource.TRACE_SESSION_PATH_PROPERTY_ID));
  assertEquals(TraceSessionState.ACTIVE.name(),sessionSource.getPropertyValue(TraceSessionPropertySource.TRACE_SESSION_STATE_PROPERTY_ID));
  ITraceControlComponent[] domains=session.getChildren();
  assertNotNull(domains);
  assertEquals(2,domains.length);
  TraceDomainComponent domain=(TraceDomainComponent)domains[0];
  adapter=domain.getAdapter(IPropertySource.class);
  assertNotNull(adapter);
  assertTrue(adapter instanceof TraceDomainPropertySource);
  TraceDomainPropertySource domainSource=(TraceDomainPropertySource)adapter;
  assertNotNull(domainSource.getPropertyDescriptors());
  assertEquals("String_Node_Str",domainSource.getPropertyValue(TraceDomainPropertySource.TRACE_DOMAIN_NAME_PROPERTY_ID));
  assertEquals(BufferType.BUFFER_SHARED.getInName(),domainSource.getPropertyValue(TraceDomainPropertySource.BUFFER_TYPE_PROPERTY_ID));
  ITraceControlComponent[] channels=domains[0].getChildren();
  assertNotNull(channels);
  assertEquals(2,channels.length);
  assertTrue(channels[0] instanceof TraceChannelComponent);
  TraceChannelComponent channel=(TraceChannelComponent)channels[0];
  adapter=channel.getAdapter(IPropertySource.class);
  assertNotNull(adapter);
  assertTrue(adapter instanceof TraceChannelPropertySource);
  TraceChannelPropertySource channelSource=(TraceChannelPropertySource)adapter;
  assertNotNull(channelSource.getPropertyDescriptors());
  assertEquals("String_Node_Str",channelSource.getPropertyValue(TraceChannelPropertySource.TRACE_CHANNEL_NAME_PROPERTY_ID));
  assertEquals(String.valueOf(4),channelSource.getPropertyValue(TraceChannelPropertySource.TRACE_CHANNEL_NO_SUBBUFFERS_PROPERTY_ID));
  assertEquals(TraceEnablement.ENABLED.name(),channelSource.getPropertyValue(TraceChannelPropertySource.TRACE_CHANNEL_STATE_PROPERTY_ID));
  assertEquals(String.valueOf(false),channelSource.getPropertyValue(TraceChannelPropertySource.TRACE_CHANNEL_OVERWRITE_MODE_PROPERTY_ID));
  assertEquals("String_Node_Str",channelSource.getPropertyValue(TraceChannelPropertySource.TRACE_CHANNEL_OUTPUT_TYPE_PROPERTY_ID));
  assertEquals(String.valueOf(200),channelSource.getPropertyValue(TraceChannelPropertySource.TRACE_CHANNEL_READ_TIMER_PROPERTY_ID));
  assertEquals(String.valueOf(262144),channelSource.getPropertyValue(TraceChannelPropertySource.TRACE_CHANNEL_SUBBUFFER_SIZE_PROPERTY_ID));
  assertEquals(String.valueOf(0),channelSource.getPropertyValue(TraceChannelPropertySource.TRACE_CHANNEL_SWITCH_TIMER_PROPERTY_ID));
  ITraceControlComponent[] channel0Events=channel.getChildren();
  assertNotNull(channel0Events);
  assertEquals(5,channel0Events.length);
  assertTrue(channel0Events[0] instanceof TraceEventComponent);
  TraceEventComponent event=(TraceEventComponent)channel0Events[0];
  adapter=event.getAdapter(IPropertySource.class);
  assertNotNull(adapter);
  assertTrue(adapter instanceof TraceEventPropertySource);
  TraceEventPropertySource eventSource=(TraceEventPropertySource)adapter;
  assertNotNull(eventSource.getPropertyDescriptors());
  assertEquals("String_Node_Str",eventSource.getPropertyValue(TraceEventPropertySource.TRACE_EVENT_NAME_PROPERTY_ID));
  assertEquals(TraceLogLevel.TRACE_EMERG.name(),eventSource.getPropertyValue(TraceEventPropertySource.TRACE_EVENT_LOGLEVEL_PROPERTY_ID));
  assertEquals(TraceEventType.TRACEPOINT.name(),eventSource.getPropertyValue(TraceEventPropertySource.TRACE_EVENT_TYPE_PROPERTY_ID));
  assertEquals(TraceEnablement.ENABLED.name(),eventSource.getPropertyValue(TraceEventPropertySource.TRACE_EVENT_STATE_PROPERTY_ID));
  assertTrue(channel0Events[2] instanceof TraceProbeEventComponent);
  TraceProbeEventComponent probeEvent=(TraceProbeEventComponent)channel0Events[2];
  adapter=probeEvent.getAdapter(IPropertySource.class);
  assertNotNull(adapter);
  assertTrue(adapter instanceof TraceProbeEventPropertySource);
  TraceProbeEventPropertySource probeEventSource=(TraceProbeEventPropertySource)adapter;
  assertNotNull(probeEventSource.getPropertyDescriptors());
  assertEquals(4,probeEventSource.getPropertyDescriptors().length);
  assertEquals("String_Node_Str",probeEventSource.getPropertyValue(TraceEventPropertySource.TRACE_EVENT_NAME_PROPERTY_ID));
  assertEquals(TraceEventType.PROBE.name(),probeEventSource.getPropertyValue(TraceEventPropertySource.TRACE_EVENT_TYPE_PROPERTY_ID));
  assertEquals(TraceEnablement.ENABLED.name(),probeEventSource.getPropertyValue(TraceEventPropertySource.TRACE_EVENT_STATE_PROPERTY_ID));
  assertEquals("String_Node_Str",probeEventSource.getPropertyValue(TraceProbeEventPropertySource.TRACE_EVENT_PROBE_ADDRESS_PROPERTY_ID));
  assertTrue(channel0Events[3] instanceof TraceProbeEventComponent);
  probeEvent=(TraceProbeEventComponent)channel0Events[3];
  adapter=probeEvent.getAdapter(IPropertySource.class);
  assertNotNull(adapter);
  assertTrue(adapter instanceof TraceProbeEventPropertySource);
  probeEventSource=(TraceProbeEventPropertySource)adapter;
  assertNotNull(probeEventSource.getPropertyDescriptors());
  assertEquals(5,probeEventSource.getPropertyDescriptors().length);
  assertEquals("String_Node_Str",probeEventSource.getPropertyValue(TraceEventPropertySource.TRACE_EVENT_NAME_PROPERTY_ID));
  assertEquals(TraceEventType.PROBE.name(),probeEventSource.getPropertyValue(TraceEventPropertySource.TRACE_EVENT_TYPE_PROPERTY_ID));
  assertEquals(TraceEnablement.ENABLED.name(),probeEventSource.getPropertyValue(TraceEventPropertySource.TRACE_EVENT_STATE_PROPERTY_ID));
  assertEquals("String_Node_Str",probeEventSource.getPropertyValue(TraceProbeEventPropertySource.TRACE_EVENT_PROBE_OFFSET_PROPERTY_ID));
  assertEquals("String_Node_Str",probeEventSource.getPropertyValue(TraceProbeEventPropertySource.TRACE_EVENT_PROBE_SYMBOL_PROPERTY_ID));
  event=(TraceEventComponent)domains[1].getChildren()[1].getChildren()[0];
  adapter=event.getAdapter(IPropertySource.class);
  assertEquals("String_Node_Str",event.getFilterExpression());
  node.disconnect();
  node.getParent().removeChild(node);
}

Fixed version (ground truth):
/** 
 * Run the TraceControlComponent.
 * @throws Exception This will fail the test
 */
@Test public void testComponentProperties() throws Exception {
  TestRemoteSystemProxy proxy=new TestRemoteSystemProxy();
  URL location=FileLocator.find(FrameworkUtil.getBundle(this.getClass()),new Path(DIRECTORY + File.separator + TEST_STREAM),null);
  File testfile=new File(FileLocator.toFileURL(location).toURI());
  proxy.setTestFile(testfile.getAbsolutePath());
  proxy.setScenario(SCEN_LIST_INFO_TEST);
  ITraceControlComponent root=TraceControlTestFacility.getInstance().getControlView().getTraceControlRoot();
  ISystemRegistry registry=RSECorePlugin.getTheSystemRegistry();
  ISystemProfile profile=registry.createSystemProfile("String_Node_Str",true);
  IHost host=registry.createLocalHost(profile,"String_Node_Str","String_Node_Str");
  TargetNodeComponent node=new TargetNodeComponent("String_Node_Str",root,host,proxy);
  root.addChild(node);
  node.connect();
  TraceControlTestFacility.getInstance().waitForJobs();
  Object adapter=node.getAdapter(IPropertySource.class);
  assertNotNull(adapter);
  assertTrue(adapter instanceof TargetNodePropertySource);
  TargetNodePropertySource source=(TargetNodePropertySource)adapter;
  assertNull(source.getEditableValue());
  assertFalse(source.isPropertySet(TargetNodePropertySource.TARGET_NODE_NAME_PROPERTY_ID));
  assertNotNull(source.getPropertyDescriptors());
  assertEquals("String_Node_Str",source.getPropertyValue(TargetNodePropertySource.TARGET_NODE_NAME_PROPERTY_ID));
  assertEquals("String_Node_Str",source.getPropertyValue(TargetNodePropertySource.TARGET_NODE_ADDRESS_PROPERTY_ID));
  assertEquals(TargetNodeState.CONNECTED.name(),source.getPropertyValue(TargetNodePropertySource.TARGET_NODE_STATE_PROPERTY_ID));
  assertEquals("String_Node_Str",source.getPropertyValue(TargetNodePropertySource.TARGET_NODE_VERSION_PROPERTY_ID));
  assertNull(source.getPropertyValue("String_Node_Str"));
  adapter=node.getAdapter(IChannelInfo.class);
  assertNull(adapter);
  ITraceControlComponent[] groups=node.getChildren();
  assertNotNull(groups);
  assertEquals(2,groups.length);
  ITraceControlComponent[] providers=groups[0].getChildren();
  assertNotNull(providers);
  assertEquals(3,providers.length);
  KernelProviderComponent kernelProvider=(KernelProviderComponent)providers[0];
  adapter=kernelProvider.getAdapter(IPropertySource.class);
  assertNotNull(adapter);
  assertTrue(adapter instanceof KernelProviderPropertySource);
  KernelProviderPropertySource kernelSource=(KernelProviderPropertySource)adapter;
  assertNotNull(kernelSource.getPropertyDescriptors());
  assertEquals("String_Node_Str",kernelSource.getPropertyValue(KernelProviderPropertySource.KERNEL_PROVIDER_NAME_PROPERTY_ID));
  UstProviderComponent ustProvider=(UstProviderComponent)providers[1];
  adapter=ustProvider.getAdapter(IPropertySource.class);
  assertNotNull(adapter);
  assertTrue(adapter instanceof UstProviderPropertySource);
  UstProviderPropertySource ustSource=(UstProviderPropertySource)adapter;
  assertNotNull(ustSource.getPropertyDescriptors());
  assertEquals("String_Node_Str",ustSource.getPropertyValue(UstProviderPropertySource.UST_PROVIDER_NAME_PROPERTY_ID));
  assertEquals(String.valueOf(9379),ustSource.getPropertyValue(UstProviderPropertySource.UST_PROVIDER_PID_PROPERTY_ID));
  ITraceControlComponent[] events=ustProvider.getChildren();
  assertNotNull(events);
  assertEquals(2,events.length);
  BaseEventComponent baseEventInfo=(BaseEventComponent)events[0];
  assertNotNull(baseEventInfo);
  adapter=baseEventInfo.getAdapter(IPropertySource.class);
  assertNotNull(adapter);
  assertTrue(adapter instanceof BaseEventPropertySource);
  BaseEventPropertySource baseSource=(BaseEventPropertySource)adapter;
  assertNotNull(baseSource.getPropertyDescriptors());
  assertEquals("String_Node_Str",baseSource.getPropertyValue(BaseEventPropertySource.BASE_EVENT_NAME_PROPERTY_ID));
  assertEquals(TraceEventType.TRACEPOINT.name(),baseSource.getPropertyValue(BaseEventPropertySource.BASE_EVENT_TYPE_PROPERTY_ID));
  assertEquals(TraceLogLevel.TRACE_DEBUG_MODULE.name(),baseSource.getPropertyValue(BaseEventPropertySource.BASE_EVENT_LOGLEVEL_PROPERTY_ID));
  baseEventInfo=(BaseEventComponent)events[1];
  assertNotNull(baseEventInfo);
  adapter=baseEventInfo.getAdapter(IPropertySource.class);
  assertNotNull(adapter);
  assertTrue(adapter instanceof BaseEventPropertySource);
  baseSource=(BaseEventPropertySource)adapter;
  assertNotNull(baseSource.getPropertyDescriptors());
  assertEquals("String_Node_Str",baseSource.getPropertyValue(BaseEventPropertySource.BASE_EVENT_FIELDS_PROPERTY_ID));
  ITraceControlComponent[] sessions=groups[1].getChildren();
  assertNotNull(sessions);
  assertEquals(2,sessions.length);
  TraceSessionComponent session=(TraceSessionComponent)sessions[1];
  adapter=session.getAdapter(IPropertySource.class);
  assertNotNull(adapter);
  assertTrue(adapter instanceof TraceSessionPropertySource);
  TraceSessionPropertySource sessionSource=(TraceSessionPropertySource)adapter;
  assertNotNull(sessionSource.getPropertyDescriptors());
  assertEquals("String_Node_Str",sessionSource.getPropertyValue(TraceSessionPropertySource.TRACE_SESSION_NAME_PROPERTY_ID));
  assertEquals("String_Node_Str",sessionSource.getPropertyValue(TraceSessionPropertySource.TRACE_SESSION_PATH_PROPERTY_ID));
  assertEquals(TraceSessionState.ACTIVE.name(),sessionSource.getPropertyValue(TraceSessionPropertySource.TRACE_SESSION_STATE_PROPERTY_ID));
  ITraceControlComponent[] domains=session.getChildren();
  assertNotNull(domains);
  assertEquals(2,domains.length);
  TraceDomainComponent domain=(TraceDomainComponent)domains[0];
  adapter=domain.getAdapter(IPropertySource.class);
  assertNotNull(adapter);
  assertTrue(adapter instanceof TraceDomainPropertySource);
  TraceDomainPropertySource domainSource=(TraceDomainPropertySource)adapter;
  assertNotNull(domainSource.getPropertyDescriptors());
  assertEquals("String_Node_Str",domainSource.getPropertyValue(TraceDomainPropertySource.TRACE_DOMAIN_NAME_PROPERTY_ID));
  assertEquals(BufferType.BUFFER_SHARED.getInName(),domainSource.getPropertyValue(TraceDomainPropertySource.BUFFER_TYPE_PROPERTY_ID));
  ITraceControlComponent[] channels=domains[0].getChildren();
  assertNotNull(channels);
  assertEquals(2,channels.length);
  assertTrue(channels[0] instanceof TraceChannelComponent);
  TraceChannelComponent channel=(TraceChannelComponent)channels[0];
  adapter=channel.getAdapter(IPropertySource.class);
  assertNotNull(adapter);
  assertTrue(adapter instanceof TraceChannelPropertySource);
  TraceChannelPropertySource channelSource=(TraceChannelPropertySource)adapter;
  assertNotNull(channelSource.getPropertyDescriptors());
  assertEquals("String_Node_Str",channelSource.getPropertyValue(TraceChannelPropertySource.TRACE_CHANNEL_NAME_PROPERTY_ID));
  assertEquals(String.valueOf(4),channelSource.getPropertyValue(TraceChannelPropertySource.TRACE_CHANNEL_NO_SUBBUFFERS_PROPERTY_ID));
  assertEquals(TraceEnablement.ENABLED.name(),channelSource.getPropertyValue(TraceChannelPropertySource.TRACE_CHANNEL_STATE_PROPERTY_ID));
  assertEquals(String.valueOf(false),channelSource.getPropertyValue(TraceChannelPropertySource.TRACE_CHANNEL_OVERWRITE_MODE_PROPERTY_ID));
  assertEquals("String_Node_Str",channelSource.getPropertyValue(TraceChannelPropertySource.TRACE_CHANNEL_OUTPUT_TYPE_PROPERTY_ID));
  assertEquals(String.valueOf(200),channelSource.getPropertyValue(TraceChannelPropertySource.TRACE_CHANNEL_READ_TIMER_PROPERTY_ID));
  assertEquals(String.valueOf(262144),channelSource.getPropertyValue(TraceChannelPropertySource.TRACE_CHANNEL_SUBBUFFER_SIZE_PROPERTY_ID));
  assertEquals(String.valueOf(0),channelSource.getPropertyValue(TraceChannelPropertySource.TRACE_CHANNEL_SWITCH_TIMER_PROPERTY_ID));
  ITraceControlComponent[] channel0Events=channel.getChildren();
  assertNotNull(channel0Events);
  assertEquals(5,channel0Events.length);
  assertTrue(channel0Events[0] instanceof TraceEventComponent);
  TraceEventComponent event=(TraceEventComponent)channel0Events[0];
  adapter=event.getAdapter(IPropertySource.class);
  assertNotNull(adapter);
  assertTrue(adapter instanceof TraceEventPropertySource);
  TraceEventPropertySource eventSource=(TraceEventPropertySource)adapter;
  assertNotNull(eventSource.getPropertyDescriptors());
  assertEquals("String_Node_Str",eventSource.getPropertyValue(TraceEventPropertySource.TRACE_EVENT_NAME_PROPERTY_ID));
  assertEquals(TraceLogLevel.TRACE_EMERG.name(),eventSource.getPropertyValue(TraceEventPropertySource.TRACE_EVENT_LOGLEVEL_PROPERTY_ID));
  assertEquals(TraceEventType.TRACEPOINT.name(),eventSource.getPropertyValue(TraceEventPropertySource.TRACE_EVENT_TYPE_PROPERTY_ID));
  assertEquals(TraceEnablement.ENABLED.name(),eventSource.getPropertyValue(TraceEventPropertySource.TRACE_EVENT_STATE_PROPERTY_ID));
  assertTrue(channel0Events[2] instanceof TraceProbeEventComponent);
  TraceProbeEventComponent probeEvent=(TraceProbeEventComponent)channel0Events[2];
  adapter=probeEvent.getAdapter(IPropertySource.class);
  assertNotNull(adapter);
  assertTrue(adapter instanceof TraceProbeEventPropertySource);
  TraceProbeEventPropertySource probeEventSource=(TraceProbeEventPropertySource)adapter;
  assertNotNull(probeEventSource.getPropertyDescriptors());
  assertEquals(4,probeEventSource.getPropertyDescriptors().length);
  assertEquals("String_Node_Str",probeEventSource.getPropertyValue(TraceEventPropertySource.TRACE_EVENT_NAME_PROPERTY_ID));
  assertEquals(TraceEventType.PROBE.name(),probeEventSource.getPropertyValue(TraceEventPropertySource.TRACE_EVENT_TYPE_PROPERTY_ID));
  assertEquals(TraceEnablement.ENABLED.name(),probeEventSource.getPropertyValue(TraceEventPropertySource.TRACE_EVENT_STATE_PROPERTY_ID));
  assertEquals("String_Node_Str",probeEventSource.getPropertyValue(TraceProbeEventPropertySource.TRACE_EVENT_PROBE_ADDRESS_PROPERTY_ID));
  assertTrue(channel0Events[3] instanceof TraceProbeEventComponent);
  probeEvent=(TraceProbeEventComponent)channel0Events[3];
  adapter=probeEvent.getAdapter(IPropertySource.class);
  assertNotNull(adapter);
  assertTrue(adapter instanceof TraceProbeEventPropertySource);
  probeEventSource=(TraceProbeEventPropertySource)adapter;
  assertNotNull(probeEventSource.getPropertyDescriptors());
  assertEquals(5,probeEventSource.getPropertyDescriptors().length);
  assertEquals("String_Node_Str",probeEventSource.getPropertyValue(TraceEventPropertySource.TRACE_EVENT_NAME_PROPERTY_ID));
  assertEquals(TraceEventType.PROBE.name(),probeEventSource.getPropertyValue(TraceEventPropertySource.TRACE_EVENT_TYPE_PROPERTY_ID));
  assertEquals(TraceEnablement.ENABLED.name(),probeEventSource.getPropertyValue(TraceEventPropertySource.TRACE_EVENT_STATE_PROPERTY_ID));
  assertEquals("String_Node_Str",probeEventSource.getPropertyValue(TraceProbeEventPropertySource.TRACE_EVENT_PROBE_OFFSET_PROPERTY_ID));
  assertEquals("String_Node_Str",probeEventSource.getPropertyValue(TraceProbeEventPropertySource.TRACE_EVENT_PROBE_SYMBOL_PROPERTY_ID));
  event=(TraceEventComponent)domains[1].getChildren()[1].getChildren()[0];
  adapter=event.getAdapter(IPropertySource.class);
  assertEquals("String_Node_Str",event.getFilterExpression());
  event=(TraceEventComponent)domains[1].getChildren()[1].getChildren()[0];
  adapter=event.getAdapter(IPropertySource.class);
  eventSource=(TraceEventPropertySource)adapter;
  assertEquals("String_Node_Str",eventSource.getPropertyValue(TraceEventPropertySource.TRACE_EVENT_LOGLEVEL_PROPERTY_ID));
  event=(TraceEventComponent)domains[1].getChildren()[1].getChildren()[1];
  adapter=event.getAdapter(IPropertySource.class);
  eventSource=(TraceEventPropertySource)adapter;
  assertEquals("String_Node_Str",eventSource.getPropertyValue(TraceEventPropertySource.TRACE_EVENT_LOGLEVEL_PROPERTY_ID));
  event=(TraceEventComponent)domains[1].getChildren()[1].getChildren()[2];
  adapter=event.getAdapter(IPropertySource.class);
  eventSource=(TraceEventPropertySource)adapter;
  assertEquals("String_Node_Str",eventSource.getPropertyValue(TraceEventPropertySource.TRACE_EVENT_LOGLEVEL_PROPERTY_ID));
  node.disconnect();
  node.getParent().removeChild(node);
}