// Assert MessageExchangeDAO
CorrelatorDAO ic = inst.getInstantiatingCorrelator();
assertNotNull(ic);
assertEquals(ic.getCorrelatorId(),CORRELATOR_ID1);
// The message is dequeued but not persisted
MessageExchangeDAO me = ic.dequeueMessage(key1);
assertNotNull(me);
assertEquals(me.getCallee(),new QName(TEST_NS,"testCallee"));
assertEquals(me.getPropagateTransactionFlag(),false);
assertEquals(me.getChannel(),"testChannel");
assertEquals(me.getCorrelationId(),"testCorrelationId");
//assertNotNull(me.getCreateTime());
assertEquals(me.getDirection(),'0');
assertNotNull(me.getEPR());
assertEquals(me.getFault().toString(),"testFault");
assertEquals(me.getFaultExplanation(),"testFaultExplanation");
assertSame(me.getInstance(),inst);
assertEquals(me.getOperation(),"testOperation");
assertNotNull(me.getPartnerLink());
assertEquals(me.getPartnerLinkModelId(),1);
assertEquals(me.getPattern(),"testPattern");
assertEquals(me.getPortType(),new QName(TEST_NS,"testPortType"));
assertSame(me.getProcess(),p);
assertEquals(me.getProperty("testProp1Key"),"testProp1");
assertNotNull(me.getRequest());
assertNotNull(me.getResponse());
assertEquals(me.getStatus(),"testStatus");
// Assert MessageDAO
MessageDAO m = me.getRequest();
assertNotNull(m.getData());
assertSame(m.getMessageExchange(),me);
assertEquals(m.getType(),new QName(TEST_NS,"testRequest"));
//Assert Child ScopeDAO
assertNotNull(inst.getScopes());
assertTrue(inst.getScopes().size() > 0);
assertNotNull(inst.getScopes("Child1"));
assertTrue(inst.getScopes("Child1").size() == 1);
ScopeDAO childS = inst.getScopes("Child1").iterator().next();
assertSame(childS,child1);
assertSame(childS.getParentScope(),rs);
assertNotNull(childS.getChildScopes());
assertEquals(childS.getChildScopes().size(), 0);
assertNotNull(childS.getVariables());
assertTrue(childS.getVariables().size() > 0);
assertNotNull(childS.getVariable("var1"));
XmlDataDAO chsVar = childS.getVariable("var1");
assertNotNull(childS.getPartnerLinks());
assertTrue(childS.getPartnerLinks().size() > 0);
PartnerLinkDAO spl = childS.getPartnerLinks().iterator().next();
assertSame(spl,me.getPartnerLink());
assertSame(spl,childS.getPartnerLink(spl.getPartnerLinkModelId()));
assertNotNull(childS.getCorrelationSets());
assertTrue(childS.getCorrelationSets().size() > 0);
assertNotNull(childS.getCorrelationSet("TestCorrelationSet1"));