@Test
public void testDecimalField() {

    DecimalField field = new DecimalField(11);
    field.setValue(12.3);
    assertEquals(11, field.getTag());
    assertEquals(BigDecimal.valueOf(12.3), field.getValue());
    field.setValue(23.4);
    assertEquals(11, field.getTag());
    assertEquals(BigDecimal.valueOf(23.4), field.getValue());
    field = new DecimalField(22, 34.5);
    assertEquals(22, field.getTag());
    assertEquals(BigDecimal.valueOf(34.5), field.getValue());
    field = new DecimalField(33, 45.6);
    assertEquals(33, field.getTag());
    assertEquals(BigDecimal.valueOf(45.6), field.getValue());
}