### Question:
WXEmbed extends WXDiv implements WXSDKInstance.OnInstanceVisibleListener,NestedContainer { @Override public void setVisibility(String visibility) { super.setVisibility(visibility); boolean visible = TextUtils.equals(visibility, Constants.Value.VISIBLE); if(mIsVisible != visible){ if (!TextUtils.isEmpty(src) && visible) { if (mNestedInstance == null) { loadContent(); } else { mNestedInstance.onViewAppear(); } } if (!visible) { if (mNestedInstance != null) { mNestedInstance.onViewDisappear(); } } mIsVisible = visible; doAutoEmbedMemoryStrategy(); } } @Deprecated  WXEmbed(WXSDKInstance instance, WXVContainer parent, String instanceId, boolean isLazy, BasicComponentData basicComponentData);  WXEmbed(WXSDKInstance instance, WXVContainer parent, BasicComponentData basicComponentData); WXSDKInstance getChildInstance(); @Override void setOnNestEventListener(OnNestedInstanceEventListener listener); @Override ViewGroup getViewContainer(); @Override void renderNewURL(String url); @Override void reload(); String getOriginUrl(); void setOriginUrl(String originUrl); @Override void addEvent(String type); @WXComponentProp(name = Constants.Name.SRC) void setSrc(String src); String getSrc(); @WXComponentProp(name = Constants.Name.PRIORITY) void setPriority(String priority); void loadUrl(String url,WXSDKInstance instance,ViewGroup.LayoutParams layoutParams); @Override void setVisibility(String visibility); @Override void destroy(); @Override void onAppear(); @Override void onDisappear(); @Override void onActivityStart(); @Override void onActivityResume(); @Override void onActivityPause(); @Override void onActivityStop(); @Override void onActivityDestroy(); void setStrategy(String strategy); @Override void addLayerOverFlowListener(String ref); @Override void removeLayerOverFlowListener(String ref); static final String STRATEGY_NONE; static final String STRATEGY_NORMAL; static final String STRATEGY_HIGH; static final String PRIORITY_LOW; static final String PRIORITY_NORMAL; static final String PRIORITY_HIGH; static final String ITEM_ID; }### Answer:
@Test public void testSetVisibility() throws Exception { component.setProperty(Constants.Name.VISIBILITY,Constants.Value.HIDDEN); component.setProperty(Constants.Name.SRC,"http: component.setProperty(Constants.Name.VISIBILITY,Constants.Value.VISIBLE); }