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