App extends Application implements Injector { @Override public void onCreate() { super.onCreate(); StrictMode.enableDefaults(); Timber.plant(BuildConfig.DEBUG ? new Timber.DebugTree() : new CrashReportingTree()); objectGraph = ObjectGraph.create(getModules().toArray()); }  @Override void onCreate();  }
@Test public void testOnCreate() throws Exception { App app = (App) Robolectric.application; assertNotNull(app.getObjectGraph()); }