FloatValue extends NumberValueAdapter<Double> { @Override public double asDouble() { return val; } FloatValue( double val ); @Override Type type(); @Override Double asNumber(); @Override long asLong(); @Override int asInt(); @Override double asDouble(); @Override float asFloat(); @Override boolean equals( Object o ); @Override int hashCode(); @Override String toString();  }
@Test void testNonZeroFloatValue() { FloatValue value = new FloatValue( 6.28 ); assertThat( value.asDouble(), equalTo( 6.28 ) ); }