@Test
public void shouldReturnTheRightException() throws Exception {

  RuntimeException runtimeException = new RuntimeException();
  DefaultErrorBundle defaultErrorBundle = new DefaultErrorBundle(runtimeException);
  Exception exception = defaultErrorBundle.getException();
  assertThat(exception).isNotNull();
  assertThat(exception).isInstanceOf(RuntimeException.class);
}