public void testOne() {
    TermVectorizer tv = new TermVectorizer();
    
    for(String[] sentence: DOC_TERMS) {
      int dim = tv.startColumn();
      for(String word: sentence) {
        tv.vectorizeTerm(word, dim);
      }
    }
    tv.truncateVectors();
    Matrix vectorMat = tv.getMatrix();
    assertEquals("Vectorized Matrix rows: ", DOC_MATRIX.length, vectorMat.numRows());
    assertEquals("Vectorized Matrix columns: ", DOC_MATRIX[0].length, vectorMat.numColumns());
    for(int r = 0; r < 4; r++) {
      for(int c = 0; c < 3; c++) {
        assertEquals("vectorMatrix[" + r + "][" + c + "]", DOC_MATRIX[r][c], vectorMat.m[r][c], 0.1);
      }
    }
  }