ShortPrimitiveDeserializer extends PrimitiveDeserializer { public Short deserialize(String value) { return isBlank(value) ? (short) 0 : valueOf(value); }  Short deserialize(String value);  }
@Test public void shouldDeserializeToShort() throws Exception { assertEquals(Short.valueOf((short)-1), deserialize(toTest, "-1")); }
@Test public void shouldDeserializeNullTo0() throws Exception { assertEquals(Short.valueOf((short)0), deserialize(toTest, null)); }