### Question:
CacheKey { @Override public String toString() { return getTimeToLive() + "s-" + getMaxEntries(); } CacheKey(int timeToLive, int maxEntries); int getTimeToLive(); int getMaxEntries(); @Override boolean equals(Object object); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void verifyToString() { CacheKey key = new CacheKey(300, 1000); assertEquals("300s-1000", key.toString()); }