/**
* Test property accessors and mutators.
*/
public void testProperties() {
CheckBox checkBox = new CheckBox();
checkBox.setSelectedStateIcon(new ResourceImageReference("SelectedState.png"));
checkBox.setStateIcon(new ResourceImageReference("State.png"));
checkBox.setPressedSelectedStateIcon(new ResourceImageReference("PressedSelectedState.png"));
checkBox.setPressedStateIcon(new ResourceImageReference("PressedState.png"));
checkBox.setRolloverSelectedStateIcon(new ResourceImageReference("RolloverSelectedState.png"));
checkBox.setRolloverStateIcon(new ResourceImageReference("RolloverState.png"));
checkBox.setStateAlignment(new Alignment(Alignment.RIGHT, Alignment.BOTTOM));
checkBox.setStatePosition(new Alignment(Alignment.TRAILING, Alignment.DEFAULT));
checkBox.setStateMargin(TestConstants.EXTENT_100_PX);
assertEquals(new ResourceImageReference("SelectedState.png"), checkBox.getSelectedStateIcon());
assertEquals(new ResourceImageReference("State.png"), checkBox.getStateIcon());
assertEquals(new ResourceImageReference("PressedSelectedState.png"), checkBox.getPressedSelectedStateIcon());
assertEquals(new ResourceImageReference("PressedState.png"), checkBox.getPressedStateIcon());
assertEquals(new ResourceImageReference("RolloverSelectedState.png"), checkBox.getRolloverSelectedStateIcon());
assertEquals(new ResourceImageReference("RolloverState.png"), checkBox.getRolloverStateIcon());
assertEquals(new Alignment(Alignment.RIGHT, Alignment.BOTTOM), checkBox.getStateAlignment());
assertEquals(new Alignment(Alignment.TRAILING, Alignment.DEFAULT), checkBox.getStatePosition());
assertEquals(TestConstants.EXTENT_100_PX, checkBox.getStateMargin());
checkBox.setSelected(true);
assertTrue(checkBox.isSelected());
checkBox.setSelected(false);
assertFalse(checkBox.isSelected());
}