### Question:
CheckBoxComponentState extends FieldComponentState implements CheckBoxComponent { @Override public boolean isChecked() { return CHECKED_VALUE.equals(getFieldValue()); } CheckBoxComponentState(final FieldComponentPattern pattern); @Override void setChecked(boolean value); @Override boolean isChecked();  }### Answer:
@Test public final void shouldIsCheckedReturnTrueIfFieldValueIs1() { checkBoxComponentState.setFieldValue("1"); boolean isChecked = checkBoxComponentState.isChecked(); assertTrue(isChecked); }
@Test public final void shouldIsCheckedReturnFalseIfFieldValueIsNull() { checkBoxComponentState.setFieldValue(null); boolean isChecked = checkBoxComponentState.isChecked(); assertFalse(isChecked); }
@Test public final void shouldIsCheckedReturnFalseIfFieldValueIsEmptyString() { checkBoxComponentState.setFieldValue(""); boolean isChecked = checkBoxComponentState.isChecked(); assertFalse(isChecked); }
@Test public final void shouldIsCheckedReturnFalseIfFieldValueIsAnyStringOtherThan1() { checkBoxComponentState.setFieldValue("someRandomStringOtherThan-1"); boolean isChecked = checkBoxComponentState.isChecked(); assertFalse(isChecked); }