@Test
public void getAdView_shouldRemoveViewFromImpressionTracker_shouldClearPreviousNativeResponse() throws Exception {

    NativeAdViewHelper.sImpressionTrackerMap.put(context, mockImpressionTracker);
    NativeAdViewHelper.getAdView(relativeLayout, viewGroup, context, mockNativeResponse1, viewBinder);
    verify(mockImpressionTracker).removeView(relativeLayout);
    // Second call should clear the first NativeResponse
    NativeAdViewHelper.getAdView(relativeLayout, viewGroup, context, mockNativeResponse2, viewBinder);
    verify(mockImpressionTracker, times(2)).removeView(relativeLayout);
    verify(mockNativeResponse1).clear(relativeLayout);
    // Third call should clear the second NativeResponse
    NativeAdViewHelper.getAdView(relativeLayout, viewGroup, context, mockNativeResponse1, viewBinder);
    verify(mockImpressionTracker, times(3)).removeView(relativeLayout);
    verify(mockNativeResponse2).clear(relativeLayout);
}