OutboundDocRetrievePolicyTransformer_a0 implements PolicyTransformer { public CheckPolicyRequestType tranform(OutboundDocRetrieveOrchestratable EntityDROrchMessage, Direction direction) { CheckPolicyRequestType policyReq; DocRetrieveEventType policyCheckReq = new DocRetrieveEventType(); if (Direction.INBOUND == direction) policyCheckReq.setDirection(NhincConstants.POLICYENGINE_INBOUND_DIRECTION); else policyCheckReq.setDirection(NhincConstants.POLICYENGINE_OUTBOUND_DIRECTION); gov.hhs.fha.nhinc.common.eventcommon.DocRetrieveMessageType request = new gov.hhs.fha.nhinc.common.eventcommon.DocRetrieveMessageType(); request.setAssertion(EntityDROrchMessage.getAssertion()); request.setRetrieveDocumentSetRequest(EntityDROrchMessage.getRequest()); policyCheckReq.setMessage(request); PolicyEngineChecker policyChecker = new PolicyEngineChecker(); policyReq = policyChecker.checkPolicyDocRetrieve(policyCheckReq); return policyReq; }  @Override CheckPolicyRequestType transform(Orchestratable message, Direction direction); CheckPolicyRequestType tranform(OutboundDocRetrieveOrchestratable EntityDROrchMessage, Direction direction);  }
@Test public void testTranform() { Orchestratable message = null; Direction direction = null; OutboundDocRetrievePolicyTransformer_a0 instance = new OutboundDocRetrievePolicyTransformer_a0(); CheckPolicyRequestType expResult = null; CheckPolicyRequestType result = instance.transform(message, direction); assertEquals(expResult, result); }