@Test
public void testLogout() throws IOException, LoginFailedException, MediaWikiApiErrorException {

	connection.login("username", "password");
	connection.logout();
	assertEquals("", connection.username);
	assertEquals("", connection.password);
	assertFalse(connection.loggedIn);
}