### Question:
ClassPathUtils { public static Set<Class<?>> scanPackage(ClassLoader classLoader, Package pkg) throws IOException { return scanPackage(classLoader, pkg.getName()); } private  ClassPathUtils(); static Set<Class<?>> scanPackage(ClassLoader classLoader, Package pkg); static Set<Class<?>> scanPackage(ClassLoader classLoader, String pkg); static Class<?> safeClassForName(ClassLoader classLoader, String className);  }### Answer:
@Test public void scanPackage() throws IOException { ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); Set<Class<?>> classes = ClassPathUtils.scanPackage(classLoader, SomeClass.class.getPackage()); assertFalse(classes.isEmpty()); }
@Test public void scanPackage_check_initialized() throws IOException { ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); Set<Class<?>> classes = ClassPathUtils.scanPackage(classLoader, getClass().getPackage()); assertFalse(classes.isEmpty()); assertEquals("XXX", SomeOtherClass2.property); }