@Test
public void testInterceptionServlet_withKarafEtc_overrideBanner() throws Exception {

	// Mocks
	HttpServletResponse resp = Mockito.mock( HttpServletResponse.class );
	Mockito.when( resp.getOutputStream()).thenReturn( Mockito.mock( ServletOutputStream.class ));
	HttpServletRequest req = Mockito.mock( HttpServletRequest.class );
	Mockito.when( req.getServletPath()).thenReturn( BANNER_IMAGE );
	ServletConfig sc = Mockito.mock( ServletConfig.class );
	ServletContext ctx = Mockito.mock( ServletContext.class );
	Mockito.when( sc.getServletContext()).thenReturn( ctx );
	// Initialization
	WebAdminInterceptionServlet servlet = new WebAdminInterceptionServlet();
	servlet.init( sc );
	File dir = this.folder.newFolder();
	servlet.karafEtc = dir.getAbsolutePath();
	File f = new File( dir, OVERRIDE_IMAGE );
	Utils.writeStringInto( "something", f );
	Assert.assertTrue( f.exists());
	// Execution
	servlet.doGet( req, resp );
	// Assertions
	Mockito.verify( req, Mockito.atLeast( 1 )).getServletPath();
	Mockito.verify( resp, Mockito.only()).getOutputStream();
}