public class OptionModelImplTest extends Assert
{
@Test
public void basics()
{
OptionModel model = new OptionModelImpl("Label", false, this);
assertEquals(model.getLabel(), "Label");
assertFalse(model.isDisabled());
assertSame(model.getValue(), this);
assertNull(model.getAttributes());
model = new OptionModelImpl("Fred", true, "fred");
assertEquals(model.getLabel(), "Fred");
assertTrue(model.isDisabled());
assertEquals(model.toString(), "OptionModel[Fred fred]");
}