import org.apache.tuscany.model.assembly.impl.EntryPointImpl;
public class MockConfigUtils {
public static ServletConfig createMockServletConfig(String entryPointName, Object instance) {
ServletConfig servletConfig = new MockServletConfig();
ServletContext context = servletConfig.getServletContext();
context.setAttribute(TuscanyServletListener.MODULE_COMPONENT_NAME, createModuleWithJSONRPCEntryPoint(entryPointName, instance));
return servletConfig;
}