### Question:
ButtonMenu extends LinearLayout implements ButtonVMListener, ButtonMenuVMListener { public void release() { unregisterListeners(); clean(); } ButtonMenu(Context context);  ButtonMenu(Context context, AttributeSet attrs); @TargetApi(VERSION_CODES.HONEYCOMB)  ButtonMenu(Context context, AttributeSet attrs, int defStyle); void initialize(); void release(); void setButtonMenuVM(ButtonMenuVM buttonMenuVM); ButtonMenuVM getButtonMenuVM(); void setOnButtonCommandExecutedListener(OnButtonCommandExecuted onButtonCommandExecutedListener); @Override void onEnablePropertyChanged(boolean enabled, ButtonVM buttonVM); @Override void onCounterValueChanged(int counterValue, CounterButtonVM buttonVM); @Override void onImageResourceChanged(int imageResourceId, MutableResourceButtonVM buttonVM); @Override void onSubjectChanged(String subject, MutableSubjectButtonVM buttonVM); @Override void onButtonVMAdded(final ButtonVM buttonVM); @Override void onButtonVMRemoved(final ButtonVM buttonVM); @Override void onProgressValueChanged(boolean loading, ButtonWithProgressVM buttonVM);  }### Answer:
@Test public void shouldReleaseButtonRemovingButtons() { initializeButtonMenu(); buttonMenu.release(); assertEquals(0, buttonMenu.getChildCount()); }