@Test
public void testReadElement() throws Exception {

	String name = "agreement_name";
    String type = "agreement_type";
    String pmodeId = "some pmode id string";
    
    AgreementReference agreementReference = AgreementRefElement.readElement(createXML(
    		"<eb3:AgreementRef xmlns:eb3=\"http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/\""
    		+ " type=\"" + type + "\" pmode=\"" + pmodeId + "\">"
    		+ name + "</eb3:AgreementRef>"));
    assertNotNull(agreementReference);
    assertEquals(name, agreementReference.getName());
    assertEquals(type, agreementReference.getType());
    assertEquals(pmodeId, agreementReference.getPModeId());
}