field.setDecimalPlaces(2);
field.setName("fieldName");
Map<String, String> errors = new HashMap<String, String>();
Double value = field.clean(new String[]{"1234"}, errors);
assertTrue(errors.isEmpty());
assertEquals(new Double(1234), value); }
public void testAnyDecimalPlaces() throws Exception {
DoubleField field = injector.getInstance(DoubleField.class);