AugmentedRestLiResponseData responseData =
new AugmentedRestLiResponseData.Builder(ResourceMethod.GET).status(HttpStatus.S_404_NOT_FOUND)
.headers(headersFromApp)
.errorResponse(appErrorResponse).build();
PartialRestResponse partialResponse = new PartialRestResponse.Builder().build();
ArgumentCaptor<RestLiServiceException> exCapture = ArgumentCaptor.forClass(RestLiServiceException.class);
when(
_responseHandler.buildErrorResponseData(eq(_restRequest), eq(_routingResult), exCapture.capture(),
anyMap())).thenReturn(responseData);
when(_responseHandler.buildPartialResponse(_routingResult, responseData)).thenReturn(partialResponse);