Set<ManagedOperation> ops = q1MO.getOperations();
ManagedOperation listAllMessages = ManagedOperationMatcher.findOperation(ops, "listAllMessages");
assertNotNull(listAllMessages);
MetaType returnType = listAllMessages.getReturnType();
assertEquals(MessageListMapper.TYPE, returnType);
MetaMapper returnTypeMapper = listAllMessages.getTransientAttachment(MetaMapper.class);
assertNotNull(returnTypeMapper);
assertTrue(returnTypeMapper instanceof MessageListMapper);
}