FilterHelper { public static boolean isClassExcluded(String className) { if (className == null) { return true; } if (className.startsWith("org.osgi.service.clusterinfo")) { return false; } for (String p : SYSTEM_PACKAGES) { if (className.startsWith(p)) { return true; } } return false; } private  FilterHelper(); static String getObjectClass(String filter); static boolean isClassExcluded(String className); static String getFullFilter(String objectClass, String filter);  }
@Test public void testIgnore() { assertThat(isClassExcluded(ConfigurationAdmin.class.getName()), equalTo(true)); assertThat(isClassExcluded("org.osgi.service.clusterinfo.NodeStatus"), equalTo(false)); }