예제 #1
0
 @Test
 public void testToString() {
   String string = this.newBag().toString();
   for (int i = 1; i < this.numKeys(); i++) {
     Assert.assertEquals(i, StringIterate.occurrencesOf(string, String.valueOf(i)));
   }
 }