Utf8String implements Type<String> { @Override public String toString() { return value; } Utf8String(String value); @Override String getValue(); @Override String getTypeAsString(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final String TYPE_NAME; static final Utf8String DEFAULT; }
@Test public void testToString() { assertThat(new Utf8String("").toString(), is("")); assertThat(new Utf8String("string").toString(), is("string")); }