private String addValue(){
  StringBuilder sb=new StringBuilder();
  HashSet<String> terms=new HashSet<>();
  int num=TestUtil.nextInt(random(),0,255);
  for (int i=0; i < num; i++) {
    sb.append(' ');
    char term=(char)TestUtil.nextInt(random(),'a','z');
    sb.append(term);
    terms.add("" + term);
  }
  expected.add(terms.size());
  return sb.toString();
}

private String addValue ( ) { StringBuilder sb = new StringBuilder ( ) ; HashSet < String > terms = new HashSet < > ( ) ; int num = TestUtil . nextInt ( random ( ) , 0 , 255 ) ; for ( int i = 0 ; i < num ; i ++ ) { sb . append ( ' ' ) ; char term = ( char ) TestUtil . nextInt ( random ( ) , 'a' , 'z' ) ; sb . append ( term ) ; terms . add ( "" + term ) ; } expected . add ( terms . size ( ) ) ; return sb . toString ( ) ; }
makes a bunch of single - char tokens ( the max # unique terms will at most be 26 ) . puts the # unique terms into expected , to be checked against the norm .
