@Test
public void testIntField() {

    IntField field = new IntField(11);
    field.setValue(12);
    assertEquals(11, field.getTag());
    assertEquals(12, field.getValue());
    field.setValue(Integer.valueOf(23));
    assertEquals(11, field.getTag());
    assertEquals(23, field.getValue());
    field = new IntField(22, 23);
    assertEquals(22, field.getTag());
    assertEquals(23, field.getValue());
    field = new IntField(33, Integer.valueOf(44));
    assertEquals(33, field.getTag());
    assertEquals(44, field.getValue());
}