@Test
public void buildActiveConnectors() {

    final SsgActiveConnectorEntityBuilder builder = new SsgActiveConnectorEntityBuilder(new IdGenerator());
    List<Entity> activeConnectors = builder.build(getTestBundle(), EntityBuilder.BundleType.ENVIRONMENT, DocumentTools.INSTANCE.getDocumentBuilder().newDocument());
    assertEquals(1, activeConnectors.size());
    Entity ssgActiveConnector = activeConnectors.get(0);
    assertEquals("::testGroup::testName::1.0", ssgActiveConnector.getName());
    Element element = ssgActiveConnector.getXml();
    assertEquals("testServiceId", DocumentUtils.getSingleChildElementTextContent(element, BundleElementNames.HARDWIRED));
    activeConnectors = builder.build(getTestAnnotatedBundle(), EntityBuilder.BundleType.ENVIRONMENT, DocumentTools.INSTANCE.getDocumentBuilder().newDocument());
    assertEquals(1, activeConnectors.size());
}