@Test
public void should_set_exception_message_as_message() throws Exception {

    Exception exception = new Exception("an error message");
    ErrorMessage errorMessage = new ErrorMessage(exception);
    assertThat(errorMessage.getMessage()).isEqualTo("an error message");
}