@Test
public void testFilterConfigAdminProperties() throws Exception {

    Map<String, Object> map = new HashMap<>();
    map.put(Constants.SERVICE_PID, "testPid");
    map.put(ConfigurationAdmin.SERVICE_FACTORYPID, "factoryPid");
    map.put(ConfigurationAdmin.SERVICE_BUNDLELOCATION, "bundleLocation");
    assertThat(filterConfigAdminProperties(map).size(), is(0));
    assertThat(filterConfigAdminProperties(null), notNullValue());
    assertThat(filterConfigAdminProperties(null).size(), is(0));
}