@Test
public void testFilter() {

    SsgActiveConnectorFilter ssgActiveConnectorFilter = new SsgActiveConnectorFilter();
    FilterConfiguration filterConfiguration = new FilterConfiguration();
    Map<String, Collection<String>> entityFilters = new HashMap<>();
    Collection entityNames = new LinkedList();
    entityNames.add("testName");
    entityFilters.put("activeConnectors", entityNames);
    filterConfiguration.setEntityFilters(entityFilters);
    List<SsgActiveConnector> filteredEntities = ssgActiveConnectorFilter.filter("/", filterConfiguration, getTestBundle(), new Bundle());
    Assert.assertEquals(1, filteredEntities.size());
    entityFilters.put("activeConnectors", Collections.EMPTY_LIST);
    filterConfiguration.setEntityFilters(entityFilters);
    filteredEntities = ssgActiveConnectorFilter.filter("/", filterConfiguration, getTestBundle(), new Bundle());
    Assert.assertEquals(0, filteredEntities.size());
}