AdapterPolicyEngineOrchestrator implements gov.hhs.fha.nhinc.adapterpolicyengineorchestrator.AdapterPolicyEngineOrchestratorPortType { @Override public gov.hhs.fha.nhinc.common.nhinccommonadapter.CheckPolicyResponseType checkPolicy( gov.hhs.fha.nhinc.common.nhinccommonadapter.CheckPolicyRequestType checkPolicyRequest) { return getAdapterComponentPolicyEngineImpl().checkPolicy(checkPolicyRequest, getWebServiceContext()); }  @Override gov.hhs.fha.nhinc.common.nhinccommonadapter.CheckPolicyResponseType checkPolicy(
            gov.hhs.fha.nhinc.common.nhinccommonadapter.CheckPolicyRequestType checkPolicyRequest);  }
@Test public void testCheckPolicy() { try { AdapterPolicyEngineOrchestrator sut = new AdapterPolicyEngineOrchestrator() { @Override protected AdapterComponentPolicyEngineImpl getAdapterComponentPolicyEngineImpl() { return mockServiceImpl; } @Override protected WebServiceContext getWebServiceContext() { return mockWebServiceContext; } }; context.checking(new Expectations() { { oneOf(mockServiceImpl).checkPolicy(with(aNonNull(CheckPolicyRequestType.class)), with(aNonNull(WebServiceContext.class))); } }); CheckPolicyRequestType request = new CheckPolicyRequestType(); CheckPolicyResponseType response = sut.checkPolicy(request); assertNotNull("CheckPolicyResponseType was null", response); } catch (Throwable t) { System.out.println("Error running testCheckPolicy: " + t.getMessage()); t.printStackTrace(); fail("Error running testCheckPolicy: " + t.getMessage()); } }