### Question:
ClassLoaders { public static boolean isNative(final URL url) { final File file = Files.toFile(url); if (file != null) { final String name = file.getName(); if (!name.endsWith(".jar") && !file.isDirectory() && name.contains(".so") && file.getAbsolutePath().startsWith("/usr/lib")) { return true; } } return false; } private  ClassLoaders(); static Set<URL> findUrls(final ClassLoader classLoader); static boolean isNative(final URL url); static Set<URL> findUrlFromResources(final ClassLoader classLoader);  }### Answer:
@Test public void testNative() throws MalformedURLException { if (System.getProperty("os.name").toLowerCase().contains("win")) { return; } final String base = "file:/usr/lib/x86_64-linux-gnu/jni/libatk-wrapper.so.0.0.18"; assertTrue(ClassLoaders.isNative(new URL(base))); assertFalse(ClassLoaders.isNative(new URL(base + ".jar"))); assertTrue(ClassLoaders.isNative(new URL("jar:" + base + "!/"))); assertFalse(ClassLoaders.isNative(new URL("jar:" + base + ".jar!/"))); }