### Question:
ExceptionResult implements Result { @Override public Object getValue() throws Exception { throw exception; } ExceptionResult(final Exception exception); @Override Object getValue(); @Override String toString();  }### Answer:
@Test public void shouldThrowException_onGetValue() { final Exception exception = new Exception(); final ExceptionResult exceptionResult = new ExceptionResult(exception); Exception thrownException = null; try { exceptionResult.getValue(); } catch (final Exception e) { thrownException = e; } assertSame(exception, thrownException); }