class AnalyticsTrackerHelper {

    public void trackEvent(String category, String action) {
        analyticsTracker.send(
                new HitBuilders.EventBuilder()
                        .setCategory(category)
                        .setAction(action)
                        .build()
        );
    }

}

class AnalyticsTrackerHelperTest  {

    @Inject Tracker mockAnalyticsTracker;
    private AnalyticsTrackerHelper analyticsTrackerHelper;

    @Test
    public void shouldTrackEventProperly() {

        analyticsTrackerHelper.trackEvent(AnalyticsTags.CATEGORY_ACTION, AnalyticsTags.ACTION_SHARE);

        verify(mockAnalyticsTracker).send(anyMap());
    }

}