OrderCustomVars extends ArrayList<OrderCustomVar> { public OrderCustomVars add(int varId, String value) { super.add(new OrderCustomVar(varId, value)); return this; }  OrderCustomVars add(int varId, String value);  }
@Test public void addTest() { orderCustomVars = orderCustomVars.add(1, "test"); assertEquals(1, orderCustomVars.size()); }