FactoryRDFCaching extends FactoryRDFStd { @Override public Node createStringLiteral(String lexical) { if ( lexical.isEmpty() ) return NodeConst.emptyString ; return super.createStringLiteral(lexical) ; } FactoryRDFCaching();  FactoryRDFCaching(int cacheSize);  FactoryRDFCaching(LabelToNode labelMapping);  FactoryRDFCaching(int cacheSize, LabelToNode labelMapping); @Override Node createURI(String uriStr); @Override Node createTypedLiteral(String lexical, RDFDatatype datatype); @Override Node createStringLiteral(String lexical); CacheInfo stats(); static final int DftNodeCacheSize; }
@Test public void factory_cache_01() { Node n1 = factory.createStringLiteral("") ; Node n2 = factory.createStringLiteral("") ; assertSame(n1, n2); }