Locale locale = Locale.ENGLISH;
DataFormatterRegistry dataFormatterRegistry = DataFormatterRegistry.lookup();
Object value = dataSet.getValueAt(x,y);
DataProperty prop = dataSet.getPropertyByColumn(y);
DataPropertyFormatter propFormatter = dataFormatterRegistry.getPropertyFormatter(prop.getPropertyId());
String displayedValue = propFormatter.formatValue(prop, value, locale);
if (!displayedValue.equals(expected)) {
fail("Data set value [" + x + "," + y + "] is different. " +
"Column=\"" + prop.getPropertyId() + "\" " +
"Actual=\"" + displayedValue + "\" Expected=\"" + expected + "\"");
}