Assert.fail(e.getMessage());
}
// serial
XACMLTransport transport = new XACMLLocalTransportFactory(pdp, false).getXACMLTransport();
ResponseCtx response = transport.evaluateRequestCtx(request);
Result result = (Result) response.getResults().iterator().next();
assertTrue(result.getDecision() == Result.DECISION_PERMIT);
assertTrue(result.getStatus().getCode().iterator().next().equals(Status.STATUS_OK));
// multithreaded transporter, one request
transport = new XACMLLocalTransportFactory(pdp, true).getXACMLTransport();
response = transport.evaluateRequestCtx(request);
result = (Result) response.getResults().iterator().next();
assertTrue(result.getDecision() == Result.DECISION_PERMIT);
assertTrue(result.getStatus().getCode().iterator().next().equals(Status.STATUS_OK));