ExpressionsFormattingController { public static void notifyRemoveTelem(AbstractComponent telem, ArrayList<AbstractComponent> telemList) { int index = telemList.indexOf(telem); telemList.remove(index); } 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 notifyRemoveTelemTest(){ tList.add(t); Assert.assertEquals(tList.size(), 1); ExpressionsFormattingController.notifyRemoveTelem(t, tList); Assert.assertEquals(tList.size(), 0); }