@SuppressWarnings("rawtypes")
ArgumentCaptor<Map> augErrorHeadersCapture = ArgumentCaptor.forClass(Map.class);
AugmentedRestLiResponseData responseData =
new AugmentedRestLiResponseData.Builder(ResourceMethod.GET).status(ex.getStatus()).headers(restExceptionHeaders).build();
PartialRestResponse partialResponse = new PartialRestResponse.Builder().build();
RestException restException = new RestException(new RestResponseBuilder().build());
// Set up.
when(_restRequest.getHeaders()).thenReturn(inputHeaders);
when(
_responseHandler.buildErrorResponseData(eq(_restRequest), eq(_routingResult), eq(ex),
augErrorHeadersCapture.capture())).thenReturn(responseData);