@Override
  public void setUp() throws Exception {
    Intent intent = new Intent(mContext, MockActivity.class);
    intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    mContext.startActivity(intent);

    // Activity needs time to start up
    sleep(LOCATION_SLEEP);

    // Get the location listener started from the activity, make sure it's not null
    locationListener = MockActivity.getLocationListener();
    assertNotNull(locationListener);
  }
 @Override
 public void tearDown() throws Exception {
   MockActivity.clear();
 }