@Test
public void testLogin() throws LoginFailedException {

	assertFalse(connection.loggedIn);
	connection.login("username", "password");
	assertEquals("username", connection.getCurrentUser());
	assertEquals("password", connection.password);
	assertTrue(connection.isLoggedIn());
}