### Question:
MainActivity extends Activity { public void setPebble(Pebble pebble) { this.pebble = pebble; }  void reportUploadMethods(Tracker tracker); void setPebble(Pebble pebble); @Override void onSaveInstanceState(@NonNull Bundle outState); @Override boolean onCreateOptionsMenu(Menu menu); @Override boolean onOptionsItemSelected(MenuItem item); @TargetApi(Build.VERSION_CODES.KITKAT) void setNextPoll(long millis); void cancelPoll(); public Runnable syncCGM; public Runnable updateTimeAgo; }### Answer:
@Test public void testOnResume_ShouldCallPebbleConfig() { activityController.create().start(); Activity activity = activityController.get(); Pebble pebble = mock(Pebble.class); ((MainActivity) activity).setPebble(pebble); activityController.stop().resume(); verify(pebble, times(1)).config(anyString(), (GlucoseUnit) anyObject(), (Context) anyObject()); }