@Test public void shouldReturnEqualsOnFatal() { UnknownError error = new UnknownError(); try { Try.of( () -> { throw error; }); fail("Exception Expected"); } catch (Try.FatalException x) { try { Try.of( () -> { throw error; }); fail("Exception Expected"); } catch (Try.FatalException fatal) { assertThat(x.equals(fatal)).isEqualTo(true); } } }