ViewImpl implements IView { public void removeAllViews() { subViews.clear(); } ViewImpl(); void removeAllViews(); List<IView> getViews(); boolean hasViews(); IViewable getParent(); void setParent(IViewable parent); IView addView(IView view); boolean removeView(IView view); void updateChild(IEvent[] newData, IEvent[] oldData); @Override void start(); @Override void stop();  }
@Test public void testRemoveAllViews() { top.addView(child1); top.addView(child2); top.removeAllViews(); SupportAssertUtil.assertEqualsExactOrder(null, top.getViews().toArray(new SupportView[top.getViews().size()])); }