TextUIWrapper { public final void install(final JTextComponent textComponent, boolean stayOnUIChange) { replaceUIIfNeeded(textComponent); if (stayOnUIChange) { uiChangeHandler.install(textComponent); } } protected  TextUIWrapper(Class<UI> wrapperClass); static final TextUIWrapper<? extends PromptTextUI> getDefaultWrapper(); final void install(final JTextComponent textComponent, boolean stayOnUIChange); abstract UI wrapUI(JTextComponent textComponent); Class<UI> getWrapperClass(); final void uninstall(final JTextComponent textComponent);  }
@Test public void testInstall() { wrapper.install(txt, false); mustBeInstalled(); }
@Test public void testInstallAndStay() { wrapper.install(txt, true); mustStayInstalled(); }