Assert.assertEquals(1, statementList.size());
List<Object> parameters = new ArrayList<Object>();
parameters.add(23456);
OracleSchemaStatVisitor visitor = new OracleSchemaStatVisitor();
visitor.setParameters(parameters);
statemen.accept(visitor);
System.out.println("Tables : " + visitor.getTables());
System.out.println("fields : " + visitor.getColumns());
System.out.println("coditions : " + visitor.getConditions());
System.out.println("relationships : " + visitor.getRelationships());
Assert.assertEquals(1, visitor.getTables().size());
Assert.assertTrue(visitor.getTables().containsKey(new TableStat.Name("department")));
Assert.assertEquals(2, visitor.getColumns().size());
Assert.assertTrue(visitor.getColumns().contains(new TableStat.Column("department", "id")));
Assert.assertTrue(visitor.getColumns().contains(new TableStat.Column("department", "name")));
Assert.assertEquals(1, visitor.getConditions().size());
Condition condition = visitor.getConditions().get(0);
Assert.assertSame(parameters.get(0), condition.getValues().get(0));
Column orderByColumn = visitor.getOrderByColumns().iterator().next();
Assert.assertEquals(SQLOrderingSpecification.DESC, orderByColumn.getAttributes().get("orderBy.type"));
}