@Test public void selectWithToTarget() { ImmutableBag<String> strings = this.newBag(); Assert.assertEquals( strings, strings .selectWith(Predicates2.<String>greaterThan(), "0", FastList.<String>newList()) .toBag()); }
@Test public void selectWith() { ImmutableBag<String> strings = this.newBag(); Assert.assertEquals(strings, strings.selectWith(Predicates2.<String>greaterThan(), "0")); }