@Test
public void testDateField() {

    DateField field = new DateField(11);
    Date date = new Date();
    field.setValue(date);
    assertEquals(11, field.getTag());
    assertEquals(date, field.getValue());
    field = new DateField(11, date);
    assertEquals(11, field.getTag());
    assertEquals(date, field.getValue());
}