ProjectAllFieldsPredicate implements ProjectPredicate { public PredicateBase generateOperatorBean(String projectOperatorId) { return new PassThroughPredicate(projectOperatorId); }  PredicateBase generateOperatorBean(String projectOperatorId); @Override boolean equals(Object other);  }
@Test public void testGenerateOperatorBean() { ProjectAllFieldsPredicate projectAllFieldsPredicate = new ProjectAllFieldsPredicate(); PredicateBase projectionBean; final String operatorId1 = "xxx"; projectionBean = projectAllFieldsPredicate.generateOperatorBean(operatorId1); Assert.assertEquals(projectionBean, new PassThroughPredicate(operatorId1)); final String operatorId2 = "y0a9"; projectionBean = projectAllFieldsPredicate.generateOperatorBean(operatorId2); Assert.assertEquals(projectionBean, new PassThroughPredicate(operatorId2)); }