FloatPrimitiveDeserializer extends PrimitiveDeserializer { public Float deserialize(String value) { return isBlank(value) ? (float) 0 : valueOf(value); }  Float deserialize(String value);  }
@Test public void shouldDeserializeToFloat() throws Exception { assertEquals(Float.valueOf(-1), deserialize(toTest, "-1")); }
@Test public void shouldDeserializeNullTo0() throws Exception { assertEquals(Float.valueOf(0), deserialize(toTest, null)); }