@Test
public void itThrowsTheCorrectExceptionWhenUnwrapping() throws Exception {

  assertThatExceptionOfType(SampleErrorException.class)
      .isThrownBy(() -> ERR_RESULT.unwrapOrElseThrow(SampleErrorException::new))
      .withMessage(SampleError.TEST_ERROR.name());
}