### Question:
WXWebView implements IWebView { @Override public View getView() { FrameLayout root = new FrameLayout(mContext); root.setBackgroundColor(Color.WHITE); mWebView = new WebView(mContext); FrameLayout.LayoutParams wvLayoutParams = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.MATCH_PARENT); wvLayoutParams.gravity = Gravity.CENTER; mWebView.setLayoutParams(wvLayoutParams); root.addView(mWebView); initWebView(mWebView); mProgressBar = new ProgressBar(mContext); showProgressBar(false); FrameLayout.LayoutParams pLayoutParams = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.LayoutParams.WRAP_CONTENT); mProgressBar.setLayoutParams(pLayoutParams); pLayoutParams.gravity = Gravity.CENTER; root.addView(mProgressBar); mMessageHandler = new MessageHandler(this); return root; } WXWebView(Context context, String origin); @Override View getView(); @Override void destroy(); @Override void loadUrl(String url); @Override void loadDataWithBaseURL(String source); @Override void reload(); @Override void goBack(); @Override void goForward(); @Override void postMessage(Object msg); @Override void setShowLoading(boolean shown); @Override void setOnErrorListener(OnErrorListener listener); @Override void setOnPageListener(OnPageListener listener); @Override void setOnMessageListener(OnMessageListener listener);  }### Answer:
@Test public void testGetView() throws Exception { assertNotNull(view); }