### Question:
GraphPredicate implements Predicate { public PredicateComparison getpComparison() { return pComparison; } GraphPredicate(); private  GraphPredicate(Name name, Object value,
                           PredicateComparison pComparison); Name getName(); Object getValue(); PredicateComparison getpComparison(); PredicateOperation getpOperation(); Predicate getNextPredicate(); @Override Predicate and(Predicate... predicate); @Override Predicate or(Predicate... predicate); @Override Comparison attribute(Name name);  }### Answer:
@Test public void testGraphPredicateEquals(){ Name name = TartanImplTestConstants.ATTR_DUMMY_ATTRIBUTE_NAME; GraphPredicate.GraphComparison graphComparison = new GraphPredicate.GraphComparison(name ); GraphPredicate graphPredicate = (GraphPredicate) graphComparison.equalTo(TartanImplTestConstants.ATTR_DUMMY_ATTRIBUTE_NAME); compareGraphPredicateParams(name, graphPredicate); assertEquals(graphPredicate.getpComparison(), GraphPredicate.PredicateComparison.EQUAL); }
@Test public void testGraphPredicateNotEqualTo(){ Name name = TartanImplTestConstants.ATTR_DUMMY_ATTRIBUTE_NAME; GraphPredicate.GraphComparison graphComparison = new GraphPredicate.GraphComparison(name ); GraphPredicate graphPredicate = (GraphPredicate) graphComparison.notEqualTo(TartanImplTestConstants.ATTR_DUMMY_ATTRIBUTE_NAME); compareGraphPredicateParams(name, graphPredicate); assertEquals(graphPredicate.getpComparison(), GraphPredicate.PredicateComparison.NOT_EQUAL); }
@Test public void testGraphPredicateGreaterThan(){ Name name = TartanImplTestConstants.ATTR_DUMMY_ATTRIBUTE_NAME; GraphPredicate.GraphComparison graphComparison = new GraphPredicate.GraphComparison(name ); GraphPredicate graphPredicate = (GraphPredicate) graphComparison.greaterThan(TartanImplTestConstants.ATTR_DUMMY_ATTRIBUTE_NAME); compareGraphPredicateParams(name, graphPredicate); assertEquals(graphPredicate.getpComparison(), GraphPredicate.PredicateComparison.GREATER); }
@Test public void testGraphPredicateLesserThan(){ Name name = TartanImplTestConstants.ATTR_DUMMY_ATTRIBUTE_NAME; GraphPredicate.GraphComparison graphComparison = new GraphPredicate.GraphComparison(name ); GraphPredicate graphPredicate = (GraphPredicate) graphComparison.lessThan(TartanImplTestConstants.ATTR_DUMMY_ATTRIBUTE_NAME); compareGraphPredicateParams(name, graphPredicate); assertEquals(graphPredicate.getpComparison(), GraphPredicate.PredicateComparison.LESS); }