mockNode.expects(once()).method("getAbsoluteY1").will(returnValue(oldy));
mockNode.expects(atLeastOnce()).method("getParent")
.will(returnValue(mockOldParent.proxy()));
MoveNodeOperation op1 = new MoveNodeOperation((Node) mockNode.proxy(),
(CompositeNode) mockNewParent.proxy(), new Point2D.Double(absx, absy));
TranslateConnectionOperation op2 = new TranslateConnectionOperation(
(Connection) mockConn.proxy(), transx, transy);
command = new MoveElementCommand((DiagramEditorNotification)
mockNotification.proxy(), new Command[] {op1, op2});
}