SystrayManager { public void setTooltip(String tooltip) { if (isSupported()) { icon.setToolTip(tooltip); } } SystrayManager(); void setRunning(boolean runs); boolean isSupported(); void setTooltip(String tooltip); TrayIcon getIcon(); void setIcon(TrayIcon icon);  }
@Test public void testSetTooltip_When_IsSupported_False() { underTest = new SystrayManager() { @Override public boolean isSupported() { return false; } }; underTest.setTooltip("asdf"); }