### Question:
TextDatum extends Datum { @Override public String asChars() { return new String(this.bytes, DEFAULT_CHARSET); } TextDatum(byte[] bytes);  TextDatum(String string); @Override boolean asBool(); @Override byte asByte(); @Override short asInt2(); @Override int asInt4(); @Override long asInt8(); @Override float asFloat4(); @Override double asFloat8(); @Override byte[] asByteArray(); @Override String asChars(); @Override char[] asUnicodeChars(); @Override byte[] asTextBytes(); @Override int size(); @Override int compareTo(Datum datum); @Override boolean equals(Object obj); @Override Datum equalsTo(Datum datum); @Override int hashCode(); @Override String toString(); static final Charset DEFAULT_CHARSET; static final int UNICODE_CHAR_BITS_NUM; static final TextDatum EMPTY_TEXT; static final Comparator<byte[]> COMPARATOR; }### Answer:
@Test public final void testAsText() { Datum d = DatumFactory.createText("12345"); assertEquals("12345", d.asChars()); }