/**
* Test method for {@link de.fuhagen.sttp.gui.FlatToggleButton#setState(boolean)}.
*/
@Test
public void testSetOn() {
Action on = new DemoAction("on");
Action off = new DemoAction("off");
FlatToggleButton button = new FlatToggleButton(on, off, 20, 80);
button.setState(true);
assertTrue("is on", button.isOn());