@SmallTest
  public void testReceiveDataWithORUXMAPS_NEW_WAYPOINT_PRESSAddsNewWaypoint() {
    PebbleDictionary dic = new PebbleDictionary();
    dic.addUint32(Constants.CMD_BUTTON_PRESS, Constants.ORUXMAPS_NEW_WAYPOINT_PRESS);

    _pebbleDataReceiver.receiveData(_mockContext, 12345, dic);

    verify(_mockOruxMaps, times(1)).newWaypoint();
  }
  @SmallTest
  public void testReceiveDataWithPLAY_PRESSStartsLocationServices() {
    PebbleDictionary dic = new PebbleDictionary();
    dic.addUint32(Constants.CMD_BUTTON_PRESS, Constants.PLAY_PRESS);

    _pebbleDataReceiver.receiveData(_mockContext, 12345, dic);

    verify(_mockServiceStarter, times(1)).startLocationServices();
  }
  @SmallTest
  public void testReceiveDataWithORUXMAPS_STOP_RECORD_PRESSStartsRecord() {
    PebbleDictionary dic = new PebbleDictionary();
    dic.addUint32(Constants.CMD_BUTTON_PRESS, Constants.ORUXMAPS_STOP_RECORD_PRESS);

    _pebbleDataReceiver.receiveData(_mockContext, 12345, dic);

    verify(_mockOruxMaps, times(1)).stopRecord();
  }
  @SmallTest
  public void testReceiveDataWithREFRESH_PRESSResetsSavedData() throws InterruptedException {
    PebbleDictionary dic = new PebbleDictionary();
    dic.addUint32(Constants.CMD_BUTTON_PRESS, Constants.REFRESH_PRESS);

    _pebbleDataReceiver.receiveData(_mockContext, 12345, dic);

    _stateLatch.await(1000, TimeUnit.MILLISECONDS);
    verify(_mockDataStore, times(1)).resetAllValues();
    verify(_mockDataStore, times(1)).commit();
  }
  @SmallTest
  public void testReceiveDataWithREFRESH_PRESSRefreshLocationServices()
      throws InterruptedException {
    PebbleDictionary dic = new PebbleDictionary();
    dic.addUint32(Constants.CMD_BUTTON_PRESS, Constants.REFRESH_PRESS);

    _pebbleDataReceiver.receiveData(_mockContext, 12345, dic);

    _stateLatch.await(1000, TimeUnit.MILLISECONDS);
    assertNotNull(_refreshEvent);
  }