### Question:
SpiResponse { public static <T> SpiResponseBuilder<T> builder() { return new SpiResponseBuilder<>(); } private  SpiResponse(SpiResponseBuilder<T> builder); static VoidResponse voidResponse(); static SpiResponseBuilder<T> builder(); boolean hasError(); boolean isSuccessful();  }### Answer:
@Test void builder_should_pass_on_failure_without_payload() { SpiResponse.SpiResponseBuilder<Object> builder = SpiResponse.builder(); SpiResponse<Object> response = builder .payload(null) .error(FORMAT_ERROR) .build(); assertEquals(Collections.singletonList(FORMAT_ERROR), response.getErrors()); }