public void testRefinementStringEncodingBlockBoxRoundTrip(){
  final int numIters=atLeast(100);
  for (int i=0; i < numIters; i++) {
    final int numStrs=atLeast(1);
    List<String> data=new ArrayList<String>(numStrs);
    for (int j=0; j < numStrs; j++) {
      data.add(TestUtil.randomUnicodeString(random()));
    }
    String encoded=PivotFacetHelper.encodeRefinementValuePath(data);
    List<String> decoded=PivotFacetHelper.decodeRefinementValuePath(encoded);
    assertEquals(data,decoded);
  }
}

public void testRefinementStringEncodingBlockBoxRoundTrip ( ) { final int numIters = atLeast ( 100 ) ; for ( int i = 0 ; i < numIters ; i ++ ) { final int numStrs = atLeast ( 1 ) ; List < String > data = new ArrayList < String > ( numStrs ) ; for ( int j = 0 ; j < numStrs ; j ++ ) { data . add ( TestUtil . randomUnicodeString ( random ( ) ) ) ; } String encoded = PivotFacetHelper . encodeRefinementValuePath ( data ) ; List < String > decoded = PivotFacetHelper . decodeRefinementValuePath ( encoded ) ; assertEquals ( data , decoded ) ; } }
test refinement encoding / decoding of random sets of values can be round tripped , w / o worrying about what the actual encoding looks like
