assertEquals(doc2.getNumberOfTypes(), doc1.getNumberOfTypes());
assertEquals(doc2.getNumberOfTopics(), doc1.getNumberOfTopics());
assertEquals(hmap2.size(), hmap1.size());
assertEquals(array2.length, array1.length);
Iterator<Integer> itr = hmap2.keySet().iterator();
while (itr.hasNext()) {
int key = itr.next();
assertEquals(hmap2.get(key), hmap1.get(key));
}