@Test public void testGetAdapterPEPImpl() { try { AdapterComponentPolicyEngineImpl sut = new AdapterComponentPolicyEngineImpl() { @Override protected Log createLogger() { return mockLog; } @Override protected AdapterPolicyEngineOrchestratorImpl getAdapterPolicyEngineOrchestratorImpl() { return mockAdapterPolicyEngineOrchestratorImpl; } }; AdapterPolicyEngineOrchestratorImpl orchImpl = sut.getAdapterPolicyEngineOrchestratorImpl(); assertNotNull("AdapterPolicyEngineOrchestratorImpl was null", orchImpl); } catch (Throwable t) { System.out.println("Error running testGetAdapterPEPImpl: " + t.getMessage()); t.printStackTrace(); fail("Error running testGetAdapterPEPImpl: " + t.getMessage()); } }