### Question:
Page { @Cacheable(lifetime = 0) public String downloadWithoutCache(final String text) { ++this.cnt; return "done without cache"; }  @Cacheable String downloadWithCache(final String text); @Cacheable(lifetime = 0) String downloadWithoutCache(final String text); int counted();  }### Answer:
@Test public void equippedWithThreeMethods() throws Exception { final Page first = new Page(); first.downloadWithoutCache(""); final Page second = new Page(); second.downloadWithoutCache(""); MatcherAssert.assertThat(first, Matchers.equalTo(second)); MatcherAssert.assertThat( first.hashCode(), Matchers.equalTo(second.hashCode()) ); MatcherAssert.assertThat(first, Matchers.hasToString("Page(cnt=1)")); }