### Question:
CheckBoxComponentState extends FieldComponentState implements CheckBoxComponent { @Override public void setChecked(boolean value) { if (value) { setFieldValue(CHECKED_VALUE); } else { setFieldValue(null); } } CheckBoxComponentState(final FieldComponentPattern pattern); @Override void setChecked(boolean value); @Override boolean isChecked();  }### Answer:
@Test public final void shouldSetCheckedChangeFieldValueToTrue() { checkBoxComponentState.setChecked(true); Object fieldValue = checkBoxComponentState.getFieldValue(); assertEquals("1", fieldValue); }
@Test public final void shouldSetCheckedChangeFieldValueToNull() { checkBoxComponentState.setChecked(false); Object fieldValue = checkBoxComponentState.getFieldValue(); assertNull(fieldValue); }