### Question:
LIT extends NODE { public String toString() { if (isText()) { return "\"" + value + "\"@" + LocaleUtil.toLang(lang); } else if (isString()) { return "\"" + value + "\""; } else { return "\"" + value + "\"^^" + datatype; } } LIT(String value, UID datatype);  LIT(String value, String lang);  LIT(String value, Locale lang);  LIT(String value); String getValue(); @Nullable Locale getLang(); UID getDatatype(); @Override NodeType getNodeType(); boolean isText(); boolean isString(); String toString(); @Override boolean isBNode(); @Override boolean isLiteral(); @Override boolean isResource(); @Override boolean isURI(); @Override int hashCode(); @Override boolean equals(Object obj); @Override LIT asLiteral();  }### Answer:
@Test public void ToString() { LIT lit1 = new LIT("x"); LIT lit2 = new LIT("x", Locale.ENGLISH); LIT lit3 = new LIT("x", XSD.stringType); LIT lit4 = new LIT("x", "en"); assertNotNull(lit1.toString()); assertNotNull(lit2.toString()); assertNotNull(lit3.toString()); assertNotNull(lit4.toString()); }