### Question:
UserConfig extends AbstractConfig { public synchronized void setAutoLogin(boolean enabled) throws IOException { setProperty(PROPERTY_AUTO_LOGIN, Boolean.toString(enabled)); saveProperties(); } UserConfig(final Path file); synchronized Path getRootPath(); synchronized boolean hasRootPath(); synchronized void setRootPath(final Path path); synchronized String getUsername(); synchronized boolean hasUsername(); synchronized void setUsername(final String username); synchronized String getPassword(); synchronized boolean hasPassword(); synchronized void setPassword(final String password); synchronized String getPin(); synchronized boolean hasPin(); synchronized void setPin(final String pin); synchronized boolean isAutoLoginEnabled(); synchronized void setAutoLogin(boolean enabled);  }### Answer:
@Test public void testSetAutoLogin() throws IOException { userConfig.setAutoLogin(true); assertTrue(userConfig.isAutoLoginEnabled()); userConfigAssertPersistence(userConfig, configFile); userConfig.setAutoLogin(false); assertFalse(userConfig.isAutoLoginEnabled()); userConfigAssertPersistence(userConfig, configFile); }