Measurement { public double getValue() { return mValue; } Measurement(double value, MeasurementUnit unit); double getValue(); MeasurementUnit getUnit(); boolean convert(MeasurementUnit to); Measurement getConverted(MeasurementUnit to);  }
@Test public void testValueGetter() { final double value = 10; Measurement measurement = new Measurement(value, MeasurementUnit.METER); assertThat(measurement.getValue(), is(value)); }