### Question:
SmallSwitchComponent { public void setValue(final boolean value) { view.setValue(value); } @Inject  SmallSwitchComponent(final View view); HTMLElement getElement(); boolean getValue(); void setValue(final boolean value); void setOnValueChanged(final Consumer<Boolean> onValueChanged);  }### Answer:
@Test public void testSetValueWhenValueIsTrue() { final boolean value = true; switchComponent.setValue(value); verify(view).setValue(value); }
@Test public void testSetValueWhenValueIsFalse() { final boolean value = false; switchComponent.setValue(value); verify(view).setValue(value); }