Flurry extends ServiceImpl implements EventTrackingService { @Override public void logEvent(Context context, String event) { FlurryAgent.onStartSession(context); FlurryAgent.logEvent(event); FlurryAgent.onEndSession(context); } 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 testLogEvent() { PowerMockito.mockStatic(FlurryAgent.class); Context mockContext = mock(Context.class); Flurry flurry = new Flurry(null); flurry.logEvent(mockContext, "test_event"); PowerMockito.verifyStatic(); FlurryAgent.onStartSession(eq(mockContext)); FlurryAgent.logEvent(eq("test_event")); FlurryAgent.onEndSession(eq(mockContext)); }