### Question:
TermFactory { public DatatypeConstant makeDatatypeConstant(String lexicalValue, String datatypeIri) { return new DatatypeConstantImpl(lexicalValue, datatypeIri); } TermFactory();  TermFactory(int cacheSize); UniversalVariable makeUniversalVariable(String name); ExistentialVariable makeExistentialVariable(String name); AbstractConstant makeAbstractConstant(String name); DatatypeConstant makeDatatypeConstant(String lexicalValue, String datatypeIri); LanguageStringConstant makeLanguageStringConstant(String string, String languageTag); Predicate makePredicate(String name, int arity);  }### Answer:
@Test public void datatypeConstant_succeeds() { TermFactory termFactory = new TermFactory(); Term term1 = termFactory.makeDatatypeConstant("abc", "http: Term term2 = new DatatypeConstantImpl("abc", "http: assertEquals(term1, term2); }