list.add(filter1);
list.add(filter2);
ClassLoader loader = ClassUtils.getDefaultClassLoader();
composite.setMatchAny(false);
assertFalse(composite.matches(new StaticServiceRegistryEntry("value1", "beanName", "moduleName", loader)));
composite.setFilters(list);
assertFalse(composite.matches(new StaticServiceRegistryEntry("value1", "beanName", "moduleName", loader)));
assertFalse(composite.matches(new StaticServiceRegistryEntry(new Integer(1), "beanName", "moduleName", loader)));
composite.setMatchAny(true);
assertTrue(composite.matches(new StaticServiceRegistryEntry("value1", "beanName", "moduleName", loader)));
assertTrue(composite.matches(new StaticServiceRegistryEntry(new Integer(1), "beanName", "moduleName", loader)));
}