### Question:
AppConfig extends AbstractConfig { public synchronized void setTrayNotification(boolean enabled) throws IOException { setProperty(PROPERTY_TRAY_NOTIFICATION, Boolean.toString(enabled)); saveProperties(); } AppConfig(Path file); synchronized int getApiServerPort(); synchronized boolean hasApiServerPort(); synchronized void setApiServerPort(final int port); synchronized boolean isTrayNotificationEnabled(); synchronized void setTrayNotification(boolean enabled);  }### Answer:
@Test public void testSetTrayNotification() throws IOException { appConfig.setTrayNotification(true); assertTrue(appConfig.isTrayNotificationEnabled()); appConfig.setTrayNotification(false); assertFalse(appConfig.isTrayNotificationEnabled()); appConfig.setTrayNotification(true); assertTrue(appConfig.isTrayNotificationEnabled()); }