@Test public void log() { PowerMockito.mockStatic(Crashlytics.class); PowerMockito.mockStatic(Fabric.class); Crash crash = new Crash(); crash.log("abc"); PowerMockito.verifyStatic(Crashlytics.class, VerificationModeFactory.times(1)); Crashlytics.log("abc"); PowerMockito.verifyNoMoreInteractions(Crashlytics.class); }
@Override public void log(String message) { initializeOnce(); Crashlytics.log(message); }
Crash implements CrashDistribution { @Override public void log(String message) { initializeOnce(); Crashlytics.log(message); } }
Crash implements CrashDistribution { @Override public void log(String message) { initializeOnce(); Crashlytics.log(message); }  }
Crash implements CrashDistribution { @Override public void log(String message) { initializeOnce(); Crashlytics.log(message); }  @Override void log(String message); @Override void initialize(); }
Crash implements CrashDistribution { @Override public void log(String message) { initializeOnce(); Crashlytics.log(message); }  @Override void log(String message); @Override void initialize();  }