public void testShouldBeAbleToRemoveAllCustomDataTypes() throws Exception { DataType.registerUserDefinedDataTypes(Point.class.getName(), new PointDataType()); DataType returnedDataType = DataType.instance(Point.class.getName()); assertEquals("(6,6)", returnedDataType.addTo("(5,5)", new Point(1, 1), 1)); DataType.clearUserDefinedDataTypes(); returnedDataType = DataType.instance(Point.class.getName()); assertEquals( "(5,5)java.awt.Point[x=1,y=1]", returnedDataType.addTo("(5,5)", new Point(1, 1), 1)); }