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);
}