AutomonExpirable extends TimeExpirable { public void setThrowable(Throwable throwable) { this.throwable = throwable; } AutomonExpirable();  AutomonExpirable(int expirationIntervalInMinutes); List<String> getArgNamesAndValues(); void setArgNamesAndValues(List<String> argNamesAndValues); Throwable getThrowable(); void setThrowable(Throwable throwable); AtomicReference setJamonDetails(Serializable details); AtomicReference getJamonDetails(); String toString();  }
@Test public void testSetThrowable() throws Exception { AutomonExpirable expirable = new AutomonExpirable(); Throwable t = new RuntimeException("my exception"); expirable.setThrowable(t); assertThat(expirable.getThrowable()).isEqualTo(t); assertThat(expirable.toString()).contains("java.lang.RuntimeException: my exception", getClass().getName()); }