Flurry extends ServiceImpl implements EventTrackingService { @Override public void enable(String applicationKey) { this.applicationKey = applicationKey; if(utils.isNotBlank(this.applicationKey)) { initFlurryAgent(); } } Flurry(Context context); @Override void enable(String applicationKey); @Override boolean isEnabled(); @Override ServiceType getServiceType(); @Override void logEvent(Context context, String event); boolean checkForJar();  }
@Test public void testEnable() { Flurry flurry = new Flurry(null){ @Override void initFlurryAgent() {} }; assertFalse(flurry.isEnabled()); flurry.enable("unit_test_api_key"); assertTrue(flurry.isEnabled()); }