@Test
void buildWithConnection_checkBundleContainsConnection() {

    CassandraConnectionEntityBuilder builder = new CassandraConnectionEntityBuilder(ID_GENERATOR);
    final Bundle bundle = new Bundle(projectInfo);
    addPasswordIfNecessary(true, bundle);
    bundle.putAllCassandraConnections(ImmutableMap.of(TEST_CASSANDRA_CONNECTION, buildCassandraConnection()));
    final List<Entity> entities = builder.build(bundle, EntityBuilder.BundleType.ENVIRONMENT, DocumentTools.INSTANCE.getDocumentBuilder().newDocument());
    assertFalse(entities.isEmpty());
    assertEquals(1, entities.size());
}