### Question:
Authenticator { public User logOutUser(String username) throws LoginException { User user = lookUpUser(username); if (user.isLoggedIn()) { user.setLoggedIn(false); updateLoggedinColumn(username, false); } return user; } Authenticator(Connection dbConnection); static String getSaltedSHA256String(String input, String salt); User logInUser(String username, String password); User lookUpUser(String username); Map<String, Object> lookUpUserProperties(String username); User logOutUser(String username); Object lookUpUserProperty(String username, String propertyName); static boolean isWrapperType(Class<?> clazz); static final int HEX_CONVERSION_CONSTANT; }### Answer:
@Test public void testLogOutUser() throws Exception { Authenticator connector = new Authenticator(connection); String username = "TestAccount4"; String password = "testPassword"; connector.logInUser(username, password); connector.logOutUser(username); User user = connector.lookUpUser(username); Assert.assertFalse(user.isLoggedIn()); }