You need a test for this class. See org.openmrs.customdatatype.datatype.DateDatatypeTest for an example.