### Question:
AtlasUtil { public static List<Class<?>> findClassesForPackage(String scannedPackage) { String scannedPath = scannedPackage.replace('.', '/'); URL scannedUrl = getResource(scannedPath); if (scannedUrl == null) { throw new IllegalArgumentException(String.format("Unable to detect resources for url='%s' for package='%s'", scannedPath, scannedPackage)); } if ("jar".equals(scannedUrl.getProtocol())) { return findClassesFromJar(scannedUrl); } File scannedFd = new File(scannedUrl.getFile()); List<Class<?>> classes = new ArrayList<Class<?>>(); if (scannedFd.listFiles() == null) { return classes; } for (File file : scannedFd.listFiles()) { classes.addAll(find(file, scannedPackage)); } return classes; }  static Properties loadPropertiesFromURL(URL url); static boolean isEmpty(String string); static boolean matchUriModule(String uriA, String uriB); static String getUriScheme(String atlasUri); static String getUriModule(String atlasUri); static String getUriDataType(String atlasUri); static String getUriModuleVersion(String atlasUri); static String getUriParameterValue(String atlasUri, String key); static Map<String, String> getUriParameters(String atlasUri); static int countCharacters(String text, char match); static List<Class<?>> findClassesForPackage(String scannedPackage); static void addAudit(AtlasSession session, String docId, String message, String path, AuditStatus status,
            String value); static Audit createAudit(AuditStatus status, String docId, String docName, String path, String value, String message); static void addAudit(AtlasSession session, Validation validation); static void addAudits(AtlasInternalSession session, String docId, List<Audit> audits); static AuditStatus toAuditStatus(ValidationStatus vstatus); static String getDocumentNameById(AtlasMapping mapping, String docId); static String getChainedMessage(Throwable t); static String escapeForUri(String source); static String unescapeFromUri(String uri); static void deleteDirectory(File targetDir); static void deleteDirectoryContents(File targetDir); static void copyFile(Path sourcePath, Path destPath); static final int SPLIT_LIMIT; static final String NEW_LINE_CHARS; }### Answer:
@Test public void testFindClassesForPackage() { List<Class<?>> classes = AtlasUtil.findClassesForPackage("io.atlasmap.v2"); assertNotNull(classes); assertTrue(classes.stream().map(Class::getName).collect(Collectors.toList()).containsAll( Arrays.asList("io.atlasmap.v2.Field", "io.atlasmap.v2.AtlasMapping", "io.atlasmap.v2.Action", "io.atlasmap.v2.Capitalize"))); }
@Test(expected = IllegalArgumentException.class) public void testFindClassesForPackageIllegalArgumentException() { AtlasUtil.findClassesForPackage("io.atlasmapv2"); }