for (int i = 0; i < iterationsCount; i++) {
int contentSize = random.nextInt(10 * 1024 - 100) + 100;
byte[] content = new byte[contentSize];
random.nextBytes(content);
OCompression compression = OCompressionFactory.INSTANCE.getCompression(name);
final byte[] compressedContent = compression.compress(content);
compressedSize += compressedContent.length;
Assert.assertEquals(content, compression.uncompress(compressedContent));
}
System.out.println("Compression/Decompression test against " + name + " took: " + (System.currentTimeMillis() - seed)
+ "ms, total byte size: " + compressedSize);
}