FloatConstantExpr extends ConstantExpr { @Override public FloatConstantExpr clone() { return new FloatConstantExpr(value); } FloatConstantExpr(String text); @Override boolean hasChild(IAstNode child); String getValue(); @Override void accept(IAstVisitor visitor); @Override FloatConstantExpr clone();  }
@Test public void testClone() throws Exception { FloatConstantExpr fce = new FloatConstantExpr("42.0"); FloatConstantExpr fce2 = fce.clone(); assertEquals(fce.getValue(), fce2.getValue()); assertFalse(fce == fce2); }