dataset.addValue(1.0, "R1", "C1");
dataset.addValue(2.0, "R1", "C2");
dataset.addValue(3.0, "R1", "C3");
CategoryDatasetSelectionExtension<String, String> ext = new
CategoryDatasetSelectionExtension<String, String>(dataset);
CategoryCursor cursor = new CategoryCursor("R1", "C1");
assertFalse(ext.isSelected(cursor));
ext.setSelected(cursor, true);
assertTrue(ext.isSelected(cursor));
cursor.setPosition("R1", "C2");
assertFalse(ext.isSelected(cursor));
dataset.removeColumn("C1");
assertFalse(ext.isSelected(cursor));
}