  @Test
  public void testTemplateSearch() throws IOException {

    underTest.templates("/apps/foo", "/apps/bar");
    assertEquals("{\"query\":"
            + "{\"bool\":"
            + "{\"filter\":"
            + "["
            + "{\"terms\":"
            + "{\"cq:template\":"
            + "["
            + "\"/apps/foo\","
            + "\"/apps/bar\""
            + "]"
            + "}"
            + "}]}}}", underTest.serialize());
  }