@Test
public void shouldReturnTheRightErrorMessageForAGivenException() throws Exception {

  NullPointerException nullPointerException = new NullPointerException("This cannot be null!");
  DefaultErrorBundle defaultErrorBundle = new DefaultErrorBundle(nullPointerException);
  String errorMessage = defaultErrorBundle.getErrorMessage();
  assertThat(errorMessage).isNotNull();
  assertThat(errorMessage).isInstanceOf(String.class);
  assertThat(errorMessage).isEqualTo("This cannot be null!");
}