String userAgent = "Mozilla/5.0 (model; U; CPU iPhone OS 7_1 like Mac OS X; " + info.getClientLocale() + " ) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8A293 Safari/6531.22.7";
assertEquals( userAgent, configCaptor.getValue().getParameter().get( getRequestKey( RequestKeys.USER_AGENT_OVERRIDE ) ) );
}
private TrackingInfo createInfo() {
TrackingInfo info = new TrackingInfo();
info.setAppId( "appId" );
info.setAppVersion( "appVersion" );
info.setClientId( "clientId" );
info.setClientLocale( Locale.CANADA );
info.setDeviceModel( "model" );
info.setScreenResolution( new Point( 100, 200 ) );
info.setSearchQuery( "query" );
info.setUserAgent( "userAgent" );
info.setClientIp( "ip" );
info.setPlatform( Platform.WEB );
return info;
}