public void testPullData() {
    assertTrue(mService != null);

    // Fill in Dummy Value
    GpsSensorValue dummyValue0 = new GpsSensorValue(0, 1, 2, 3);
    GpsSensorValue dummyValue1 = new GpsSensorValue(0, 1, 2, 4);
    GpsSensorValue dummyValue2 = new GpsSensorValue(0, 1, 2, 5);
    GpsSensorValue dummyValue3 = new GpsSensorValue(0, 1, 2, 6);

    mService.putSensorValue(dummyValue0);
    mService.putSensorValue(dummyValue1);
    mService.putSensorValue(dummyValue2);
    mService.putSensorValue(dummyValue3);

    List<? extends SensorValue> data = mService.pullData();
    assertFalse(data.isEmpty());
    assertTrue(data.get(0).equals(dummyValue0));
    assertTrue(data.get(1).equals(dummyValue1));
    assertTrue(data.get(2).equals(dummyValue2));
    assertTrue(data.get(3).equals(dummyValue3));

    // Pull again should be empty
    data = mService.pullData();
    data = mService.pullData();
    assertTrue(data.isEmpty());
  }
  public void testLastValue() {
    assertTrue(mService != null);

    // Fill in Dummy Value
    GpsSensorValue dummyValue = new GpsSensorValue(0, 1, 2, 3);
    mService.putSensorValue(dummyValue);

    Log.i("TEST", dummyValue.toString());
    Log.i("TEST", mService.getLastValue().toString());
    assertTrue(mService.getLastValue().equals(dummyValue));
  }
 public void testMetaData() {
   assertTrue(mService != null);
   assertTrue(mService.getMetadata().getServiceName() == GpsSensorService.SENSOR_NAME);
 }