### Question:
UnaryExpr extends Expr { public UnOp getOp() { return op; } UnaryExpr(Expr expr, UnOp op); Expr getExpr(); UnOp getOp(); @Override void accept(IAstVisitor visitor); @Override UnaryExpr clone(); @Override boolean hasChild(IAstNode candidateChild); @Override Expr getChild(int index); @Override void setChild(int index, Expr expr); @Override int getNumChildren();  }### Answer:
@Test public void getOp() throws Exception { assertEquals(UnOp.BNEG, expr.getOp()); }