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

	connection.login("username", "password");
	assertFalse(connection.getCookies().isEmpty());
	connection.clearCookies();
	assertTrue(connection.getCookies().isEmpty());
}