    @Test
    public void nullErrorThrows() {

        try {
            Result.error(null);
            fail();
        } catch (NullPointerException e) {
            assertThat(e).hasMessage("error == null");
        }
    }