### Question:
DateTimeStandardizer implements StandardizationPolicy { public Object convertRawValue(Object value) { if (accepts(value)) { return String.valueOf(convertValue(value.toString())); } return value; } DateTimeStandardizer(OutputFormats outputFormat);  DateTimeStandardizer(String inputDateFormat, OutputFormats outputFormat);  DateTimeStandardizer(@PolicyPropertyRef(name = "Date Format") String inputDateFormat,
                                @PolicyPropertyRef(name = "Output Format") OutputFormats outputFormat,
                                @PolicyPropertyRef(name = "Input Timezone") String inputTimezone,
                                @PolicyPropertyRef(name = "Output Timezone") String outputTimezone); @Override String convertValue(String value); String getInputDateFormat(); OutputFormats getOutputFormat(); Boolean accepts(Object value); Object convertRawValue(Object value);  }### Answer:
@Test public void testConvertRawValueValidType() { Object expectedValue = "2016-05-06 15:32:54"; Object rawValue = "05/06/2016 22:32:54"; DateTimeStandardizer standardizer = new DateTimeStandardizer("MM/dd/YYYY HH:mm:ss", OutputFormats.DATETIME_NOMILLIS, "UTC", "PST"); assertEquals(expectedValue, standardizer.convertRawValue(rawValue)); }
@Test public void testConvertRawValueInvalidType() { Object expectedValue = Double.valueOf("1000.05"); Object rawValue = Double.valueOf("1000.05"); DateTimeStandardizer standardizer = new DateTimeStandardizer("MM/dd/YYYY HH:mm:ss", OutputFormats.DATETIME_NOMILLIS, "UTC", "PST"); assertEquals(expectedValue, standardizer.convertRawValue(rawValue)); }