### Question:
TypedString implements Named, Comparable<T>, Serializable { @Override @ToString public final String toString() { return name; } protected  TypedString(String name); protected  TypedString(String name, Pattern pattern, String msg); protected  TypedString(String name, CharMatcher matcher, String msg); @Override String getName(); @Override final int compareTo(T other); @Override final boolean equals(Object obj); @Override final int hashCode(); @Override @ToString final String toString();  }### Answer:
@Test public void test_of() { SampleType test = SampleType.of("A"); assertThat(test.toString()).isEqualTo("A"); }
@Test public void test_of_validated() { SampleValidatedType test = SampleValidatedType.of("ABC"); assertThat(test.toString()).isEqualTo("ABC"); }