AudioPlayerActivity extends RoboActionBarActivity { @Override public boolean onTouchEvent(MotionEvent event) { mediaController.show(); return super.onTouchEvent(event); }  @Override boolean onOptionsItemSelected(MenuItem item); @Override boolean onTouchEvent(MotionEvent event); @Subscribe void onEvent(AudioPlayingEvent event); @Subscribe void onEvent(AudioStoppedEvent event);  }
@Test public void itShowsMediaControlOnTouchEvent() { AudioPlayerActivity activity = createActivity(); MotionEvent motionEvent = mock(MotionEvent.class); activity.onTouchEvent(motionEvent); verify(mediaControllerMock).show(); }