### Question:
ResourceScanning { public static void scanPackage(String[] packages, ResourceCallback callback) { for (String packagePath : packages) { scanPackage(packagePath, callback); } } private  ResourceScanning(); static void scanPackage(String[] packages, ResourceCallback callback);  }### Answer:
@Test public void test() { List<Resource> rs = new ArrayList<>(); ResourceScanning.scanPackage(new String[] { "xyz.noark.core.ioc.scan" }, (r) -> rs.add(r)); assertTrue(!rs.isEmpty()); }