ShowRuleNameOptionPresenter { public void onRuleNameCheckboxChanged(boolean checked) { if (callback != null) { callback.callback(checked); } } ShowRuleNameOptionPresenter(); @Inject  ShowRuleNameOptionPresenter(final View view); View getView(); void addOptionChangeCallback(Callback<Boolean> callback); void setShowRuleName(boolean show); void onRuleNameCheckboxChanged(boolean checked);  }
@Test public void setVisible() { presenter.onRuleNameCheckboxChanged(true); verify(callback).callback(true); }
@Test public void hide() { presenter.onRuleNameCheckboxChanged(false); verify(callback).callback(false); }