@Test
public void testBuildAssertionElement() {

    String connectionName = "cassandraTest";
    Element cassandraAssertion = createCassandraAssertion(document, connectionName);
    policyBuilderContext = new PolicyBuilderContext("path.xml", document, bundle, new IdGenerator());
    policyBuilderContext.withPolicy(policy);
    cassandraAssertionBuilder.buildAssertionElement(cassandraAssertion, policyBuilderContext);
    Element cassandraConnectionName = getSingleChildElement(cassandraAssertion, CASSANDRA_CONNECTION_NAME, true);
    assertNotNull(cassandraConnectionName);
    assertEquals("::" + projectInfo.getGroupName() + "::" + connectionName + "::1.0", cassandraConnectionName.getAttributes().getNamedItem(STRING_VALUE).getTextContent());
}