### Question:
TermFrequencyVector { public int total() { return tf.total(); } TermFrequencyVector(String s); int distance(TermFrequencyVector other); int total(); @Override String toString();  }### Answer:
@Test public void testTotal() { System.out.println("total"); TermFrequencyVector tf1 = new TermFrequencyVector(s1); TermFrequencyVector tf2 = new TermFrequencyVector(s2); System.out.println("tf1=" + tf1.toString()); System.out.println("f2=" + tf2.toString()); assertEquals(13, tf1.total()); assertEquals(20, tf2.total()); }