MatomoApplication extends Application { public Matomo getMatomo() { return Matomo.getInstance(this); }  Matomo getMatomo(); synchronized Tracker getTracker(); abstract TrackerBuilder onCreateTrackerConfig(); @Override void onLowMemory(); @Override void onTrimMemory(int level);  }
@Test public void testApplication() { MatomoApplication matomoApplication = (MatomoApplication) Robolectric.application; Assert.assertEquals(matomoApplication.getMatomo(), Matomo.getInstance(matomoApplication)); }