@Test
public void testCreateElement() throws Exception {

    PullRequest pullRequest = new PullRequest();
    pullRequest.setMPC("some_mpc");
    OMElement prSignalElement =
            PullRequestElement.createElement(headerBlock, pullRequest);
    assertEquals(SIGNAL_MESSAGE_ELEMENT_NAME, prSignalElement.getQName());
    OMElement miElement = prSignalElement.getFirstElement();
    assertEquals(MESSAGE_INFO_ELEMENT_NAME, miElement.getQName());
    Iterator it = miElement.getChildrenWithName(TIMESTAMP_ELEMENT_NAME);
    assertTrue(it.hasNext());
    it = miElement.getChildrenWithName(MESSAGE_ID_ELEMENT_NAME);
    assertTrue(it.hasNext());
    it = prSignalElement.getChildrenWithName(PULLREQUEST_ELEMENT_NAME);
    assertTrue(it.hasNext());
    OMElement pr = (OMElement)it.next();
    assertEquals("some_mpc", pr.getAttributeValue(new QName("mpc")));
}