TwitterStaticNativeAdRenderer implements MoPubAdRenderer<StaticNativeAd> { @Override public View createAdView(final Context context, final ViewGroup parent) { return new TwitterStaticNativeAd(context, null, styleResId); } TwitterStaticNativeAdRenderer();  TwitterStaticNativeAdRenderer(int styleResId); @Override View createAdView(final Context context, final ViewGroup parent); @Override void renderAdView(final View view, final StaticNativeAd staticNativeAd); @Override boolean supports(final BaseNativeAd nativeAd);  }
@Test(expected = NullPointerException.class) public void testCreateAdView_withNullContext_shouldThrowNPE() { twitterStaticNativeAdRenderer.createAdView(null, viewGroup); }