UTILS { public static boolean hasOntologyFormatExtension(String fileName) { if (fileName == null || fileName.isEmpty()) return false; String fileExtension; if (fileName.contains(".") && fileName.lastIndexOf(".") != 0) { fileExtension = fileName.substring(fileName.lastIndexOf(".") + 1); switch (fileExtension.toLowerCase(Locale.ENGLISH)) { case "rdf": case "owl": case "ttl": case "nq": return true; default: return false; } } return false; }  static String cleanPath(IRI iri); static boolean createNew(File file); static boolean delete(File file); static String getOlgaVersion(); static String cleanPackageName(String path); static void validateClassName(String className); static boolean hasOntologyFormatExtension(String fileName); static int weightOfProperties(ZClass zclass); static String cleanPackageName(IRI iri); static void copyFiles(String fileName, String pathSource, String pathDestination); static void copyDirectory(String directoryName, String pathSource, String pathDestination); static String removeLastPoint(String packageName); static boolean isPathValid(String path); static String rebuildPath(String path); static void cleanDirectory(File directory); static boolean deleteDirectory(File dir); static boolean isVersionPatternValid(String version); static int propertyWeight(ZObjectProperty zObjectProperty); static int propertyWeight(ZDataProperty zDataProperty);  }
@Test public void testhasOntologyFormatExtension() { assertTrue(UTILS.hasOntologyFormatExtension("fileName.rdf")); }