### Question:
NonEmptyPredicate implements Predicate<String> { @Override public boolean test(String value) { return StringUtils.isNotEmpty(value); }  @Override boolean test(String value);  }### Answer:
@Test public void test() { NonEmptyPredicate predicate = new NonEmptyPredicate(); Assert.assertFalse(predicate.test(null)); Assert.assertFalse(predicate.test("")); Assert.assertTrue(predicate.test(" ")); Assert.assertTrue(predicate.test("bob")); Assert.assertTrue(predicate.test(" bob ")); }