@Test public void simpleScenario() throws Exception { Set<String> indexes = new HashSet<String>(); indexes.add("some-test-index-1"); indexes.add("some-test-index-2"); when(treeService.searchTree("http: ResourceSearchIndexes result = searchIndex.getIndexes("http: assertEquals(Arrays.asList(": assertEquals(indexes, result.getPathIndexes()); assertEquals(Arrays.asList("/"), result.getParentPathIndexes()); verify(treeService).searchTree("http: }
@Override public ResourceSearchIndexes getIndexes(String resource, String realm) throws EntitlementException { return DELEGATE.getIndexes(resource, realm); }
TreeSearchIndex implements ISearchIndex { @Override public ResourceSearchIndexes getIndexes(String resource, String realm) throws EntitlementException { return DELEGATE.getIndexes(resource, realm); } }
TreeSearchIndex implements ISearchIndex { @Override public ResourceSearchIndexes getIndexes(String resource, String realm) throws EntitlementException { return DELEGATE.getIndexes(resource, realm); }  }
TreeSearchIndex implements ISearchIndex { @Override public ResourceSearchIndexes getIndexes(String resource, String realm) throws EntitlementException { return DELEGATE.getIndexes(resource, realm); }  @Override ResourceSearchIndexes getIndexes(String resource, String realm); }
TreeSearchIndex implements ISearchIndex { @Override public ResourceSearchIndexes getIndexes(String resource, String realm) throws EntitlementException { return DELEGATE.getIndexes(resource, realm); }  @Override ResourceSearchIndexes getIndexes(String resource, String realm);  }