@Test
public void testBuildAssertionElement() {

    String connectionName = "jmsConnection";
    Element assertion = createAssertion(document, connectionName);
    policyBuilderContext = new PolicyBuilderContext("path.xml", document, bundle, new IdGenerator());
    policyBuilderContext.withPolicy(policy);
    jmsAssertionBuilder.buildAssertionElement(assertion, policyBuilderContext);
    Element connectionNameEle = getSingleChildElement(assertion, JMS_ENDPOINT_NAME, true);
    assertNotNull(connectionNameEle);
    assertEquals("::" + projectInfo.getGroupName() + "::" + connectionName + "::1.0", connectionNameEle.getAttributes().getNamedItem(STRING_VALUE).getTextContent());
}