public void testUnion()
{
assertStatement("SELECT 123 UNION DISTINCT SELECT 123 UNION ALL SELECT 123",
new Query(
Optional.<With>absent(),
new Union(ImmutableList.<Relation>of(
new Union(ImmutableList.<Relation>of(createSelect123(), createSelect123()), true),
createSelect123()
), false),
ImmutableList.<SortItem>of(),
Optional.<String>absent(),
Optional.<Approximate>absent()));