log.debug("result: " + v);
// JBAS-7024,
ManagedOperation listAllMessages = getOperation(component, "listAllMessages", new String[0]);
MetaType listAllMessagesRT = listAllMessages.getReturnType();
log.debug("listAllMessagesRT: " + listAllMessagesRT);
MetaValue listAllMessagesMV = listAllMessages.invoke(new MetaValue[0]);
assertNotNull("null operation return value", listAllMessagesMV);
log.debug("result: " + listAllMessagesMV);
MetaType resultType = listAllMessagesMV.getMetaType();
log.debug("resultType: "+resultType);
assertTrue("resultType instanceof CompositeMetaType", resultType instanceof CollectionMetaType);
CollectionMetaType resultCMT = (CollectionMetaType) resultType;
MetaType resultElementType = resultCMT.getElementType();
log.debug("resultElementType: "+resultElementType);
assertTrue("resultElementType instanceof CompositeMetaType", resultElementType instanceof CompositeMetaType);
log.debug("resultElementType: "+resultElementType);
CollectionValue listAllMessagesCV = (CollectionValue) listAllMessagesMV;
MetaValue[] listAllMessagesElements = listAllMessagesCV.getElements();
log.debug("listAllMessagesElements: "+listAllMessagesElements);
if(listAllMessagesElements.length > 0)
{
MetaValue m0 = listAllMessagesElements[0];
MetaType m0MT = m0.getMetaType();
assertTrue("m0MT.isComposite", m0MT.isComposite());
assertTrue("m0MT instanceof CompositeMetaType", m0MT instanceof CompositeMetaType);
assertTrue("m0 instanceof CompositeValue", m0 instanceof CompositeValue);
CompositeValue m0MV = (CompositeValue) m0;
log.debug("m0MV.values: "+m0MV.values());
}