### Question:
JQueryUiTooltip extends JQueryDurableAjaxBehavior { public JQueryUiTooltip setHide(Boolean hide) { this.widget.setOption("hide", hide ? "true" : "false"); return this; } JQueryUiTooltip(JQueryResourceReference customJQueryUiTooltipJs);  JQueryUiTooltip(String componentSelector, JQueryResourceReference customJQueryUiTooltipJs); protected  JQueryUiTooltip(JQueryUiWidget widget); static JQueryUiTooltip tooltip_1_10_3(); static JQueryUiTooltip tooltip_1_10_3(String componentSelector); @Override void renderHead(Component component, IHeaderResponse response); JQueryUiTooltip addCssResource(ResourceReference cssResourceReference); JQueryUiTooltip withoutCss(); JQueryUiTooltip setContent(String content); JQueryUiTooltip setContent(JsFunction content); JQueryUiTooltip setContent(Component content); JQueryUiTooltip setDisabled(boolean disabled); JQueryUiTooltip setHide(Boolean hide); JQueryUiTooltip setHide(int hide); JQueryUiTooltip setHide(String hide); JQueryUiTooltip setHide(JsOption... options); JQueryUiTooltip setItems(String itemsSelector); JQueryUiTooltip setPosition(JsOption... options); JQueryUiTooltip setShow(Boolean show); JQueryUiTooltip setShow(int show); JQueryUiTooltip setShow(String show); JQueryUiTooltip setShow(JsOption... options); JQueryUiTooltip setTooltipClass(String tooltipClass); JQueryUiTooltip setTrack(boolean track); JQueryUiTooltip setOnClose(String close); JQueryUiTooltip setOnCreate(String create); JQueryUiTooltip setOnOpen(String open); static final JQueryResourceReference uiTooltipJs_1_10_3; static final CssResourceReference uiTooltipCss_1_10_3; }### Answer:
@Test public void shouldConvertHideOptionFromBooleanToString() { tooltip.setHide(true); verify(widget).setOption("hide", "true"); tooltip.setHide(false); verify(widget).setOption("hide", "false"); }
@Test public void shouldConvertHideOptionFromIntToString() { tooltip.setHide(5); verify(widget).setOption("hide", "5"); }
@Test public void shouldSurroundHideOptionWithSingleQuotes() { tooltip.setHide("slideUp"); verify(widget).setOption("hide", "'slideUp'"); }
@Test public void shouldConvertHideOptionFromJsOptionsToString() { JsOption effect = new JsOption("effect", "'explode'"); JsOption duration = new JsOption("duration", "1000"); tooltip.setHide(effect, duration); verify(widget).setOption("hide", "{effect:'explode',duration:1000}"); }
@Test public void shouldConvertShowOptionFromBooleanToString() { tooltip.setHide(true); verify(widget).setOption("hide", "true"); tooltip.setHide(false); verify(widget).setOption("hide", "false"); }
@Test public void shouldConvertShowOptionFromIntToString() { tooltip.setHide(5); verify(widget).setOption("hide", "5"); }
@Test public void shouldSurroundShowOptionWithSingleQuotes() { tooltip.setHide("slideUp"); verify(widget).setOption("hide", "'slideUp'"); }
@Test public void shouldonvertShowOptionFromJsOptionsToString() { JsOption effect = new JsOption("effect", "'explode'"); JsOption duration = new JsOption("duration", "1000"); tooltip.setHide(effect, duration); verify(widget).setOption("hide", "{effect:'explode',duration:1000}"); }