ExpressionsFormattingController { public static void notifyMovedDownOne(Expression exp, ExpressionList expList){ if (exp != null && expList != null){ int index = expList.indexOf(exp); expList.move(index+1, exp); } } private  ExpressionsFormattingController(); static void notifyExpressionAdded(Expression newExp, ExpressionList expList); static void notifyExpressionDeleted(Expression selectedExp, ExpressionList expList); static void notifyExpressionAddedAbove(Expression newExp, Expression selectedExp, ExpressionList expList); static void notifyExpressionAddedBelow(Expression newExp, Expression selectedExp, ExpressionList expList); static void notifyMovedUpOne(Expression exp, ExpressionList expList); static void notifyMovedDownOne(Expression exp, ExpressionList expList); static void notifyMoveToTop(Expression exp, ExpressionList expList); static void notifyMoveToBottom(Expression exp, ExpressionList expList); static void notifyRemoveTelem(AbstractComponent telem, ArrayList<AbstractComponent> telemList);  }
@Test public void notifyMovedDownOneTest(){ eList.addExp(e1); eList.addExp(e2); ExpressionsFormattingController.notifyMovedDownOne(e1, eList); Assert.assertEquals(eList.getExp(0), e2); }