assertEquals(expectedPermissions, permissions);
}
@Test
public void getUserProfile() {
FacebookProfile profile = fb.userOperations().getUserProfile();
assertEquals(testUser.getId(), profile.getId());
assertEquals("Jack Diamond", profile.getName());
assertEquals("Jack", profile.getFirstName());
assertEquals("Diamond", profile.getLastName());
assertEquals("08/08/1980", profile.getBirthday());
assertEquals("https://www.facebook.com/profile.php?id="+testUser.getId(), profile.getLink());
assertEquals(new Locale("en", "US"), profile.getLocale());
assertEquals(0.0f, (float) profile.getTimezone(), 0.0f);
assertFalse(profile.isVerified());
assertNotNull(profile.getUpdatedTime()); // TODO : Verify time is (within reason) near the current time
// some data is randomly generated for the test user, so tests cannot be precise
assertTrue(profile.getEmail().matches("jack_(.*)_diamond@tfbnw.net"));
assertTrue(profile.getGender().equals("male") || profile.getGender().equals("female"));
}