public class BooleanControlTest extends TestCase {
public void testEnumControl() {
BooleanControl control = new MyControl(BooleanControl.Type.MUTE, true,
"ON", "OFF");
assertTrue(control.getValue());
control.setValue(false);
assertFalse(control.getValue());
assertEquals("ON", control.getStateLabel(true));
assertEquals("OFF", control.getStateLabel(false));
assertEquals("Mute Control with current value: OFF", control
.toString());
control = new MyControl(BooleanControl.Type.APPLY_REVERB, false);
assertFalse(control.getValue());
control.setValue(true);
assertTrue(control.getValue());
assertEquals("true", control.getStateLabel(true));
assertEquals("false", control.getStateLabel(false));
assertEquals("Apply Reverb Control with current value: true", control
.toString());
}