DoublePrimitiveDeserializer extends PrimitiveDeserializer { public Double deserialize(String value) { return isBlank(value) ? (double) 0 : valueOf(value); }  Double deserialize(String value);  }
@Test public void shouldDeserializeToByte() throws Exception { assertEquals(Double.valueOf(-1), deserialize(toTest, "-1")); }
@Test public void shouldDeserializeNullTo0() throws Exception { assertEquals(Double.valueOf(0), deserialize(toTest, null)); }