@Test public void testQueryUriWithParams() throws Exception { Resource res = createResource("foo/bar/_search=?somequery&bla=bla"); assertEquals("foo/bar", res.indexAndType()); }
@Test public void testUnderscore() throws Exception { Resource res = createResource("fo_o/ba_r"); assertEquals("fo_o/ba_r", res.indexAndType()); }