### Question:
PredicateImpl implements Predicate { @Override public String toString() { return Serializer.getSerialization(serializer -> serializer.writePredicate(this)); } PredicateImpl(final String name, int arity); @Override String getName(); @Override int getArity(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }### Answer:
@Test public void predicateToStringTest() { final Predicate p1 = new PredicateImpl("p", 1); assertEquals("p[1]", p1.toString()); }