Page { public boolean isFromRestBase() { return fromRestBase; } Page(@NonNull PageTitle title, @NonNull List<Section> sections, @NonNull PageProperties pageProperties, boolean fromRestBase); @NonNull PageTitle getTitle(); @NonNull List<Section> getSections(); String getDisplayTitle(); @Nullable String getTitlePronunciationUrl(); @NonNull PageProperties getPageProperties(); boolean couldHaveReadMoreSection(); boolean isFilePage(); boolean isMainPage(); boolean isArticle(); boolean isProtected(); boolean isFromRestBase();  }
@Test public void testMediaWikiMarshalling() { PageTitle title = new PageTitle("Main page", WIKI, " PageProperties props = new PageProperties(title, true); Page page = new Page(title, new ArrayList<>(), props, false); assertThat(page.isFromRestBase(), is(false)); }
@Test public void testRestBaseMarshalling() { PageTitle title = new PageTitle("Main page", WIKI, " PageProperties props = new PageProperties(title, true); Page page = new Page(title, new ArrayList<>(), props, true); assertThat(page.isFromRestBase(), is(true)); }