Connector { public List<Page> queryContent(User user, List<String> listOfTitleStrings) { return query(user, listOfTitleStrings, PROP, REVISIONS, RVPROP, "timestamp|user|comment|content"); } Connector();  Connector(HttpClientBuilder builder); User login(User user); List<Page> queryContent(User user, List<String> listOfTitleStrings); List<Page> queryCategories(User user, List<String> listOfTitleStrings); List<Page> queryInfo(User user, List<String> listOfTitleStrings); List<Page> queryLinks(User user, List<String> listOfTitleStrings); List<Page> queryImageinfo(User user, List<String> listOfImageStrings); List<Page> queryImageinfo(User user, List<String> listOfImageStrings, int imageWidth); List<Page> query(User user, Query query);  }
@Betamax(tape = "queryContentFoo", mode = READ_ONLY) @Test public void testQueryContent() throws Exception { List<Page> pages = subject.queryContent(anonUser, Collections.singletonList("foo")); assertThat(pages).hasSize(1); Page page = pages.get(0); assertThat(page.getTitle()).isEqualTo("foo"); assertThat(page.getCurrentContent()).isNotEmpty(); assertThat(page.sizeOfCategoryList()).isZero(); assertThat(page.getPageid()).isEqualTo("39480"); }