DTProperties.put(DataTypeDate.class.getName(), "useJavaDefaultFormat", "false");
DTProperties.put(DataTypeDate.class.getName(), "localeFormat", "" + DateFormat.MEDIUM);
DTProperties.put(DataTypeDate.class.getName(), "lenient", "false");
classUnderTest = new DataTypeDate(null, getMockColumnDisplayDefinition());
Date currentDate = Date.valueOf("2010-10-15");
String expectedDate = DateFormat.getDateInstance(userDefinedDateFormat).format(currentDate);
String renderedDate = classUnderTest.renderObject(currentDate);
assertEquals("Must use the user defined format", expectedDate, renderedDate);
}