QueryExprConverter { protected QueryExpr convertUnknownExpr(QueryExpr expr) { throw new IllegalArgumentException("Unable to convert expression: " + expr); }  QueryExpr convert(QueryExpr qe);  }
@Test(expected=IllegalArgumentException.class) public void convertUnknownExpr() { new QueryExprConverter().convert(new QueryExpr() { }); }