DerivativeGauge implements Gauge<T> { @Override public T getValue() { return transform(base.getValue()); } protected  DerivativeGauge(Gauge<F> base); @Override T getValue();  }
@Test public void returnsATransformedValue() { assertThat(gauge2.getValue()) .isEqualTo(3); }