servlet = new MockSlingRequestHandlerServlet();
servletResolver = new SlingServletResolver();
MockBundle bundle = new MockBundle(1L);
MockComponentContext mockComponentContext = new MockComponentContext(
bundle, SlingServletResolverTest.this.servlet);
MockServiceReference serviceReference = new MockServiceReference(bundle);
serviceReference.setProperty(Constants.SERVICE_ID, 1L);
serviceReference.setProperty(EngineConstants.SLING_SERLVET_NAME,
SERVLET_NAME);
serviceReference.setProperty(
ServletResolverConstants.SLING_SERVLET_PATHS, SERVLET_PATH);
serviceReference.setProperty(
ServletResolverConstants.SLING_SERVLET_EXTENSIONS,
SERVLET_EXTENSION);
mockComponentContext.locateService(SERVLET_NAME, serviceReference);
servletResolver.bindServlet(serviceReference);