mockElement.expects(once()).method("getAbsoluteX1").
will(returnValue(oldpos.getX()));
mockElement.expects(once()).method("getAbsoluteY1").
will(returnValue(oldpos.getY()));
param = new MoveParam(element, newpos);
params = new MoveParam[] {param};
command = new MoveElementCommand((DiagramEditorNotification)
mockNotification.proxy(), params);
}