App extends Application implements Injector { @NotNull protected List<Object> getModules() { return new ArrayList<>(Arrays.asList(new AppDaggerModule(this))); }  @Override void onCreate();  }
@Test public void testGetModules() throws Exception { App app = (App) Robolectric.application; assertEquals(2, app.getModules().size()); }