public List<Procedure> getProcedures(String schema)
{
return ImmutableList.<Procedure>builder()
.add(procedure(schema, "test_simple", "simple", ImmutableList.of()))
.add(procedure(schema, "test_args", "args", ImmutableList.of(
new Argument("x", BIGINT),
new Argument("y", DOUBLE),
new Argument("z", VARCHAR),
new Argument("q", BOOLEAN))))
.add(procedure(schema, "test_nulls", "nulls", ImmutableList.of(
new Argument("x", BIGINT),
new Argument("y", VARCHAR))))
.add(procedure(schema, "test_arrays", "arrays", ImmutableList.of(
new Argument("x", "array(bigint)"),
new Argument("y", "array(varchar)"))))
.add(procedure(schema, "test_nested", "nested", ImmutableList.of(
new Argument("x", "array(array(bigint))"))))
.add(procedure(schema, "test_session_first", "sessionFirst", ImmutableList.of(
new Argument("x", BIGINT))))
.add(procedure(schema, "test_session_last", "sessionLast", ImmutableList.of(
new Argument("x", VARCHAR))))
.add(procedure(schema, "test_exception", "exception", ImmutableList.of()))
.add(procedure(schema, "test_error", "error", ImmutableList.of()))
.build();
}