@Test
public void testBooleanField() {

    BooleanField field = new BooleanField(11);
    field.setValue(true);
    assertEquals(11, field.getTag());
    assertTrue(field.getValue());
    field.setValue(Boolean.FALSE);
    assertEquals(11, field.getTag());
    assertFalse(field.getValue());
    field = new BooleanField(22, true);
    assertEquals(22, field.getTag());
    assertTrue(field.getValue());
    field = new BooleanField(33, Boolean.TRUE);
    assertEquals(33, field.getTag());
    assertTrue(field.getValue());
}