@Test
public void testGetElements() throws Exception {

	Iterator<OMElement> umElements = UserMessageElement.getElements(createXML(
<eb3:Messaging xmlns:eb3=\"http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/\">\n" + 
    <eb3:UserMessage>\n" +
		Normal contents of User Message would go here" +
    </eb3:UserMessage>\n" + 
    <eb3:UserMessage>\n" +
		Bundled User Message (NOTE: By default this is not allowed!" +
    </eb3:UserMessage>\n" + 
</eb3:Messaging>"));
	
	assertFalse(Utils.isNullOrEmpty(umElements));
	assertEquals(USER_MESSAGE_ELEMENT_NAME, umElements.next().getQName());
	assertTrue(umElements.hasNext());
	assertEquals(USER_MESSAGE_ELEMENT_NAME, umElements.next().getQName());
	assertFalse(umElements.hasNext());    	
}