### Question:
CompressedHelper { public static boolean isFileExtractable(String path) { String type = getExtension(path); return isZip(type) || isTar(type) || isRar(type) || isGzippedTar(type) || is7zip(type) || isBzippedTar(type) || isXzippedTar(type) || isLzippedTar(type); }  static Extractor getExtractorInstance(
      @NonNull Context context,
      @NonNull File file,
      @NonNull String outputPath,
      @NonNull Extractor.OnUpdate listener); static Decompressor getCompressorInstance(@NonNull Context context, @NonNull File file); static boolean isFileExtractable(String path); static String getFileName(String compressedName); static final boolean isEntryPathValid(String entryPath); static final char SEPARATOR_CHAR; static final String SEPARATOR; static final String fileExtensionZip; static final String fileExtensionTar; static final String fileExtensionGzipTarLong; static final String fileExtensionBzip2TarLong; static final String fileExtensionRar; static final String fileExtension7zip; static final String fileExtensionLzma; static final String fileExtensionXz; }### Answer:
@Test public void isFileExtractableTest() throws Exception { assertTrue(CompressedHelper.isFileExtractable("/test/test.zip")); assertTrue(CompressedHelper.isFileExtractable("/test/test.rar")); assertTrue(CompressedHelper.isFileExtractable("/test/test.tar")); assertTrue(CompressedHelper.isFileExtractable("/test/test.tar.gz")); assertTrue(CompressedHelper.isFileExtractable("/test/test.tgz")); assertTrue(CompressedHelper.isFileExtractable("/test/test.tar.bz2")); assertTrue(CompressedHelper.isFileExtractable("/test/test.tbz")); assertTrue(CompressedHelper.isFileExtractable("/test/test.tar.lzma")); assertTrue(CompressedHelper.isFileExtractable("/test/test.jar")); assertTrue(CompressedHelper.isFileExtractable("/test/test.apk")); assertTrue(CompressedHelper.isFileExtractable("/test/test.7z")); assertFalse(CompressedHelper.isFileExtractable("/test/test.z")); }