twitter.sync();
assertEquals("http://twitter.com/habuma/a_new_picture", twitter.getImageUrl());
}
private void assertFacebookConnection(Connection<TestFacebookApi> facebook) {
assertEquals(new ConnectionKey("facebook", "12345"), facebook.getKey());
assertEquals("Craig Walls", facebook.getDisplayName());
assertEquals("http://facebook.com/habuma", facebook.getProfileUrl());
assertEquals("http://facebook.com/habuma/picture", facebook.getImageUrl());
TestFacebookApi facebookApi = facebook.getApi();
assertEquals("ACCESS_TOKEN", facebookApi.getAccessToken());