### Question:
RelatedTermsResult { public boolean isSinglePage() { return page == null || page.getTotalPages() == 1; } RelatedTermsResult(@JsonProperty("_links") Map<ResultsLinkType, Link> links,
							  @JsonProperty("_embedded") EmbeddedOntologyTerms embedded,
							  @JsonProperty("page") Page page); Map<ResultsLinkType, Link> getLinks(); EmbeddedOntologyTerms getEmbedded(); List<OntologyTerm> getTerms(); Page getPage(); boolean isSinglePage(); boolean hasTerms();  }### Answer:
@Test public void isSinglePage() { RelatedTermsResult r = new RelatedTermsResult(null, null, null); assertTrue(r.isSinglePage()); r = new RelatedTermsResult(null, null, new Page(0, 0, 10, 0)); assertFalse(r.isSinglePage()); r = new RelatedTermsResult(null, null, new Page(0, 0, 1, 0)); assertTrue(r.isSinglePage()); }