	@Test
	public void urlPathRootPathMobileDeviceNoPreference() throws Exception {

		device.setDeviceType(DeviceType.MOBILE);
		SiteSwitcherRequestFilter urlPath = new SiteSwitcherRequestFilter();
		MockFilterConfig filterConfig = new MockFilterConfig();
		filterConfig.addInitParameter("switcherMode", "urlPath");
		filterConfig.addInitParameter("mobilePath", "/mob");
		filterConfig.addInitParameter("rootPath", "/app");
		urlPath.init(filterConfig);
		urlPath.doFilter(request, response, filterChain);
		assertEquals(0, response.getCookies().length);
		assertEquals("http://" + request.getServerName() + "/app/mob", response.getRedirectedUrl());
	}