DoubleWrapperDeserializer extends PrimitiveDeserializer<Double> { public Double deserialize(String value) { return isBlank(value) ? null : valueOf(value); }  Double deserialize(String value);  }
@Test public void shouldDeserializeToDouble() throws Exception { assertEquals(Double.valueOf(-1), deserialize(toTest, "-1")); }
@Test public void shouldDeserializeNullToNull() throws Exception { assertNull(deserialize(toTest, null)); }