@Test public void testLoadAssertion() { try { AdapterComponentPolicyEngineImpl sut = new AdapterComponentPolicyEngineImpl() { @Override protected Log createLogger() { return mockLog; } @Override protected void loadAssertion(AssertionType assertion, WebServiceContext wsContext) throws Exception {} }; final AssertionType mockAssertion = context.mock(AssertionType.class); sut.loadAssertion(mockAssertion, mockWebServiceContext); assertTrue("Passed loadAssertion", true); } catch (Throwable t) { System.out.println("Error running testLoadAssertion: " + t.getMessage()); t.printStackTrace(); fail("Error running testLoadAssertion: " + t.getMessage()); } }