public boolean isSuccess() {
        return applicationStatus == ApplicationStatus.SUCCEEDED
                || (applicationStatus == ApplicationStatus.UNKNOWN && serializedThrowable == null);
    }
@Test
    void testIsNotSuccess() {
        final JobResult jobResult =
                new JobResult.Builder()
                        .jobId(new JobID())
                        .serializedThrowable(new SerializedThrowable(new RuntimeException()))
                        .netRuntime(Long.MAX_VALUE)
                        .build();

        assertThat(jobResult.isSuccess()).isFalse();
    }