for (int i = 0; i < 10; i++) {
trainingDocs.add(generateSampleDoc((int)(Math.random() * 100) + 100));
}
NativeCompressionModel model = new NativeCompressionModel();
model.build(new ArrayDocumentList(trainingDocs));
for (int i = 0; i < 100; i++) {
byte[] doc = generateSampleDoc((int)(Math.random() * 100) + 100);
CompressionTest.testBuiltModel(model, doc, -1);