import org.springframework.mock.web.MockHttpServletRequest;
public final class MockHttpUtil {
public static void setupRequestAsNonMobileUserAgent(MockHttpServletRequest mockHttpServletRequest) {
mockHttpServletRequest.addHeader("User-Agent", "MSIE");
mockHttpServletRequest.setAttribute(DeviceUtils.CURRENT_DEVICE_ATTRIBUTE, new LiteDeviceResolver().resolveDevice(mockHttpServletRequest));
}