vectorTF.compact();
assertTrue(vectorTF.getUsed() == 2); // vectorTF.getUsed() returns 5
for (Iterator<VectorEntry> it = vectorTF.iterator();it.hasNext();) {
VectorEntry ve= it.next();
int index = ve.index();
double value = ve.get();
assertTrue(tfVector[index]== value);
}
}