{
ClassLoadingMetaData test = new ClassLoadingMetaData();
assertNull(test.getIncluded());
test.setIncludedPackages("java.lang");
ClassFilter filter = test.getIncluded();
assertTrue(filter.matchesClassName(Object.class.getName()));
assertFalse(filter.matchesClassName(Collection.class.getName()));
test.setIncluded(ClassFilter.JAVA_ONLY);
filter = test.getIncluded();
assertTrue(filter.matchesClassName(Object.class.getName()));
assertFalse(filter.matchesClassName(Collection.class.getName()));
test.setIncludedPackages(null);
filter = test.getIncluded();
assertEquals(ClassFilter.JAVA_ONLY, filter);
assertTrue(filter.matchesClassName(Object.class.getName()));
assertTrue(filter.matchesClassName(Collection.class.getName()));
}