### Question:
AbstractJaxRsProvider implements IRestfulServerDefaults { public Response handleException(final JaxRsRequest theRequest, final Throwable theException) throws IOException { if (theException instanceof JaxRsResponseException) { return new JaxRsExceptionInterceptor().convertExceptionIntoResponse(theRequest, (JaxRsResponseException) theException); } else { return new JaxRsExceptionInterceptor().convertExceptionIntoResponse(theRequest, new JaxRsExceptionInterceptor().convertException(this, theException)); } } protected  AbstractJaxRsProvider(); protected  AbstractJaxRsProvider(final FhirContext ctx); @Override IInterceptorService getInterceptorService(); @Override AddProfileTagEnum getAddProfileTag(); String getBaseForRequest(); String getBaseForServer(); @Override EncodingEnum getDefaultResponseEncoding(); @Override ETagSupportEnum getETagSupport(); @Override ElementsSupportEnum getElementsSupport(); @Override FhirContext getFhirContext(); HttpHeaders getHeaders(); @Override List<IServerInterceptor> getInterceptors_(); @Override IPagingProvider getPagingProvider(); Map<String, String[]> getParameters(); Builder getRequest(final RequestTypeEnum requestType, final RestOperationTypeEnum restOperation); Builder getRequest(final RequestTypeEnum requestType, final RestOperationTypeEnum restOperation, final String theResourceName); IServerAddressStrategy getServerAddressStrategy(); UriInfo getUriInfo(); Response handleException(final JaxRsRequest theRequest, final Throwable theException); @Override boolean isDefaultPrettyPrint(); void setHeaders(final HttpHeaders headers); void setUriInfo(final UriInfo uriInfo); boolean withStackTrace();  }### Answer:
@Test public void testHandleExceptionJaxRsResponseException() throws IOException { final ResourceNotFoundException base = new ResourceNotFoundException(new IdDt(1L)); final JaxRsResponseException theException = new JaxRsResponseException(base); final Response result = provider.handleException(theRequest, theException); assertNotNull(result); assertEquals(base.getStatusCode(), result.getStatus()); }