ZipUtils { public static byte[] zipString(final String input) { return zipString(input, false); } private  ZipUtils(); static void unzipArchive(final File archive, final File outputDir); static void unzipArchive(final ZipFile zipFile, final File outputDir); static byte[] zipString(final String input); static byte[] zipString(final String input, boolean optimize); static String unzipString(final byte[] input); static byte[] deflateString(final String input); static String inflateString(final byte[] input);  }
@Test(dataProvider = "compressString") public void test_zipString(String input) { byte[] bytes = ZipUtils.zipString(input); byte[] expected = ZipUtils.zipString(input, false); assertEquals(expected, bytes); }