GoogleAnalytics analytics = mock( GoogleAnalytics.class );
GoogleAnalyticsTracker tracker = new GoogleAnalyticsTracker( analytics );
TrackingInfo info = createInfo();
info.setPlatform( Platform.ANDROID );
info.setDeviceOsVersion( "4.4" );
TrackingEvent event = new TrackingEvent( EventType.SEARCH, info, "foo", 1 );
tracker.handleEvent( event );
ArgumentCaptor<AdvancedConfiguration> configCaptor = ArgumentCaptor.forClass( AdvancedConfiguration.class );
verify( analytics ).track( any( Hit.class ), eq( "clientId" ), configCaptor.capture() );