SystrayManager { public void setRunning(boolean runs) { updateTrayIconIfSupported(runs); } SystrayManager(); void setRunning(boolean runs); boolean isSupported(); void setTooltip(String tooltip); TrayIcon getIcon(); void setIcon(TrayIcon icon);  }
@Test public void testSetRunning_isSupportedIsFalse_Transition() { underTest = new SystrayManager() { @Override public boolean isSupported() { return false; } }; underTest.setRunning(true); underTest.setRunning(false); underTest.setRunning(true); }
@Test public void testSetRunning_When_IsSupported_False() { underTest = new SystrayManager() { @Override public boolean isSupported() { this.setRunning(true); return false; } }; underTest.setRunning(true); }