### Question:
TypeValidator implements Validator { @Override final public String toString() { return descr; } TypeValidator( Class<?> scalarClass, Class<?> arrayClass, int nDims,
		String descr );  TypeValidator( Class<?> scalarClass, Class<?> arrayClass, int nDims,
		String descr, boolean subclassOk ); final static void checkDims( int nDims ); Class<?> getExpectedClass(); int getNDims(); @Override final String toString(); boolean validate( Object value ); Object validateValue( Object value );  }### Answer:
@Test public void testToString() { MyTypeValidator v = new MyTypeValidator( int.class, int.class, 0, "abc" ); assertEquals( "abc", v.toString() ); v = new MyTypeValidator( int.class, int.class, 0, "def" ); assertEquals( "def", v.toString() ); v = new MyTypeValidator( int.class, int.class, 0, "ghi" ); assertEquals( "ghi", v.toString() ); }