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