@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))); } }