### Question:
SmallSwitchComponentView implements SmallSwitchComponent.View { @Override public void setValue(final boolean value) { inputCheckbox.checked = value; } @Inject  SmallSwitchComponentView(final HTMLInputElement inputCheckbox); @Override void init(final SmallSwitchComponent presenter); @EventHandler("input-checkbox") void onInputCheckBoxChange(final ChangeEvent e); @Override boolean getValue(); @Override void setValue(final boolean value); @Override void setOnValueChanged(final Consumer<Boolean> onValueChanged);  }### Answer:
@Test public void testSetValue() { final boolean value = true; inputCheckbox.checked = false; view.setValue(value); assertEquals(value, inputCheckbox.checked); }