https://github.com/codice/ddf-catalog/blob/master/core/catalog-core-impl/filter-proxy/src/test/java/ddf/catalog/filter/proxy/builder/test/FilterBuilderTest.java#L592-840

Let me know if you need more examples.