Foundation { public static ApplicationProvider app() { try { return getManager().provider(ApplicationProvider.class); } catch (Exception ex) { logger.error("Initialize ApplicationProvider failed.", ex); return NullProviderManager.provider; } }  static String getProperty(String name, String defaultValue); static NetworkProvider net(); static ServerProvider server(); static ApplicationProvider app();  }
@Test public void testApp() { assertTrue(Foundation.app() instanceof DefaultApplicationProvider); }