### Question:
JobResult implements Serializable { public boolean isSuccess() { return serializedThrowable == null; } private  JobResult(
			final JobID jobId,
			final Map<String, SerializedValue<OptionalFailure<Object>>> accumulatorResults,
			final long netRuntime,
			@Nullable final SerializedThrowable serializedThrowable); boolean isSuccess(); JobID getJobId(); Map<String, SerializedValue<OptionalFailure<Object>>> getAccumulatorResults(); long getNetRuntime(); Optional<SerializedThrowable> getSerializedThrowable(); JobExecutionResult toJobExecutionResult(ClassLoader classLoader); static JobResult createFrom(AccessExecutionGraph accessExecutionGraph);  }### Answer:
@Test public void testIsNotSuccess() throws Exception { final JobResult jobResult = new JobResult.Builder() .jobId(new JobID()) .serializedThrowable(new SerializedThrowable(new RuntimeException())) .netRuntime(Long.MAX_VALUE) .build(); assertThat(jobResult.isSuccess(), equalTo(false)); }
@Test public void testIsSuccess() throws Exception { final JobResult jobResult = new JobResult.Builder() .jobId(new JobID()) .netRuntime(Long.MAX_VALUE) .build(); assertThat(jobResult.isSuccess(), equalTo(true)); }