/**
* Tests the methods of the NullSelection object.
*/
public void testState() {
double x = 1, y = 2;
Selection selection = NullSelection.getInstance();
assertEquals(NullElement.getInstance(), selection.getElement());
assertEquals(0, selection.getElements().size());
assertFalse(selection.isDragging());
assertFalse(selection.contains(x, y));
assertEquals(Cursor.getDefaultCursor(),
selection.getCursorForPosition(x, y));
// These methods have no effect, just check they don't throw
// exceptions
selection.startDragging(x, y);
selection.stopDragging(x, y);
selection.cancelDragging();
selection.updatePosition(x, y);
selection.draw(drawingContext);
selection.updateDimensions();
}