@Override
  public void setUp() throws Exception {
    super.setUp();

    System.setProperty("dexmaker.dexcache", getContext().getCacheDir().getPath());
    setupMocks();

    _app = new TestApplication();
    _app.setObjectGraph(ObjectGraph.create(new TestModule()));
    _app.inject(this);
    _bus.register(this);

    _command = new OruxMapsServiceCommand();
  }
  @Override
  public void setUp() throws Exception {
    super.setUp();

    System.setProperty("dexmaker.dexcache", getContext().getCacheDir().getPath());

    _app = new TestApplication();
    _app.setObjectGraph(ObjectGraph.create(TestModule.class));
    _app.inject(this);
    _bus.register(this);

    setupMocks();

    _pebbleDataReceiver = new PebbleDataReceiver();
    _stateLatch = new CountDownLatch(1);
  }
  @Override
  protected void setUp() throws Exception {
    super.setUp();

    this.getInstrumentation()
        .waitForIdleSync(); // this is needed for emulator versions 2.3 as the application is
                            // instantiated on a separate thread.
    TestApplication app =
        (TestApplication) this.getInstrumentation().getTargetContext().getApplicationContext();

    app.setObjectGraph(ObjectGraph.create(new TestModule()));
    app.inject(this);

    setupMocks();

    setActivityInitialTouchMode(false);

    _activity = getActivity();

    startFragment(new SpeedFragment());

    _speedLabel = (TextView) _activity.findViewById(R.id.speed_label);
    _speedText = (TextView) _activity.findViewById(R.id.speed_text);
    _speedUnitsLabel = (TextView) _activity.findViewById(R.id.speed_units_label);

    _timeLabel = (TextView) _activity.findViewById(R.id.time_label);
    _timeText = (TextView) _activity.findViewById(R.id.time_text);

    _distanceLabel = (TextView) _activity.findViewById(R.id.distance_label);
    _distanceText = (TextView) _activity.findViewById(R.id.distance_text);
    _distanceUnitsLabel = (TextView) _activity.findViewById(R.id.distance_units_label);

    _avgspeedLabel = (TextView) _activity.findViewById(R.id.avgspeed_label);
    _avgspeedText = (TextView) _activity.findViewById(R.id.avgspeed_text);
    _avgspeedUnitsLabel = (TextView) _activity.findViewById(R.id.avgspeed_units_label);
  }