protected Float maxValue() {
return Float.MAX_VALUE;
}
public void testCustomApi() {
FloatSerializer serializer = createSerializer();
float val = 0;
assertEquals(val, serializer.floatValue(serializer.floatBytes(val)));
val = minValue();
assertEquals(val, serializer.floatValue(serializer.floatBytes(val)));
val = maxValue();
assertEquals(val, serializer.floatValue(serializer.floatBytes(val)));
val = anyValue();
assertEquals(val, serializer.floatValue(serializer.floatBytes(val)));
}