@Test
public void testCreateElement() throws Exception {

	Collection<IPayload> payloads = new ArrayList<>();
	Payload p = new Payload();
	p.setPayloadURI("cid:as_attachment");
	p.addProperty(new Property("p1", "v1"));
	payloads.add(p);
	
	OMElement piElement = PayloadInfoElement.createElement(createParent(), payloads);
	
    assertNotNull(piElement);
    assertEquals(PAYLOAD_INFO_ELEMENT_NAME, piElement.getQName());
    Iterator it = piElement.getChildrenWithName(PART_INFO_ELEMENT_NAME);
    assertTrue(it.hasNext());
    it.next();
    assertFalse(it.hasNext());        
}