@Test
  public void badSyntax() throws Exception {

    try {
      repository.find("}  {").fetchAll().getUnchecked();
      fail("Should have failed");
    } catch (Exception ignore) {
      // ok
    }
  }
Test for using repository directly as JSON pass-through.
mongo/test/org/immutables/mongo/fixture/criteria/JsonQueryTest.java