RosieActivity extends FragmentActivity implements RosiePresenter.View, Injectable { @Override public final void inject(Object object) { if (shouldInitializeActivityScopeGraph()) { injectActivityModules(); } activityScopeGraph.inject(object); activityScopeGraph.injectStatics(); }  @Override final void inject(Object object);  }
@Test public void shouldNotCrashIfSomeoneTriesToInjectAnObjectBeforeTheOnCreateMethodHasNotBeenCalled() { FakeActivity fakeActivity = Robolectric.buildActivity(FakeActivity.class).get(); fakeActivity.inject(new Object()); }