@Test
public void testAppInfo() throws Exception {
FacebookJaxbRestClient client = FacebookSessionTestUtils.getValidClient( FacebookJaxbRestClient.class );
// Stuff application
AppInfo appInfo = client.application_getPublicInfoByApiKey( stuffAPIKEY_ExistsInDirectory );
assertNotNull( appInfo.getAppId() );
assertNotNull( appInfo.getApiKey() );
assertNotNull( appInfo.getCanvasName() );
assertNotNull( appInfo.getCompanyName() );
assertNotNull( appInfo.getIconUrl() );
assertNotNull( appInfo.getLogoUrl() );
assertNotNull( appInfo.getDescription() );
assertTrue( appInfo.getDailyActiveUsers() > -1 );
assertTrue( appInfo.getWeeklyActiveUsers() > -1 );
assertTrue( appInfo.getMonthlyActiveUsers() > -1 );
// Now lookup by application id
appInfo = client.application_getPublicInfoById( appInfo.getAppId() );
assertEquals( stuffAPIKEY_ExistsInDirectory, appInfo.getApiKey() );
}