RequestProcessor requestProcessor = new RequestProcessor(configuration);
MockServletContext servletContext = new MockServletContext();
servletContext.setAttribute(requestProcessorAttribute, requestProcessor);
MockServletConfig servletConfig = new MockServletConfig(servletContext);
servletConfig.addInitParameter("javax.ws.rs.Application", getApplicationClassName());
servletConfig.addInitParameter("requestProcessorAttribute", requestProcessorAttribute);
String propertiesFile = getPropertiesFile();
if (propertiesFile != null) {
servletConfig.addInitParameter("propertiesLocation", propertiesFile);
}
assertNull(configuration.getServletContext());
assertNull(configuration.getServletConfig());