ArgumentCaptor<Hit> hitCaptor = ArgumentCaptor.forClass( Hit.class );
ArgumentCaptor<AdvancedConfiguration> configCaptor = ArgumentCaptor.forClass( AdvancedConfiguration.class );
verify( analytics, times( 2 ) ).track( hitCaptor.capture(), eq( "clientId" ), configCaptor.capture() );
assertAdvancedConfiguration( configCaptor.getAllValues().get( 0 ) );
Hit transactionHit = hitCaptor.getAllValues().get( 0 );
Hit itemHit = hitCaptor.getAllValues().get( 1 );
verifyTransactionHit( order, transactionHit );
verifyItemHit( order, itemHit );
}