HockeyApp extends ServiceImpl implements CrashReportingService { @Override public void enable(String apiKey) { this.apiKey = apiKey; } HockeyApp(Context context); @Override void enable(String apiKey); @Override boolean isEnabled(); @Override ServiceType getServiceType(); void logEvent(final StoredException storedException, final Callback<Object> deleteStoredExceptionCallback); HockeyAppService createService();  }
@Test public void testEnable() { HockeyApp hockeyApp = new HockeyApp(null); assertFalse(hockeyApp.isEnabled()); hockeyApp.enable("unit_test_api_key"); assertTrue(hockeyApp.isEnabled()); }