BaseHtmlWebView extends BaseWebView implements UserClickListener { public void init(boolean isScrollable) { initializeOnTouchListener(isScrollable); } BaseHtmlWebView(Context context, AdConfiguration adConfiguration); void init(boolean isScrollable); @Override void loadUrl(String url); @Override void onUserClick(); @Override void onResetUserClick(); @Override boolean wasClicked();  }
@Test public void init_shouldSetWebViewScrollability() throws Exception { subject.init(false); assertThat(shadowOf(subject).getOnTouchListener()).isNotNull(); subject.init(true); assertThat(shadowOf(subject).getOnTouchListener()).isNotNull(); }