### Question:
PrimitiveShortWrapper extends ShortWrapper { @Override public void set(Number v) { set(v == null ? defaultValue : v.shortValue()); } PrimitiveShortWrapper();  PrimitiveShortWrapper(short value); @Override void set(Number v); @Override Short getDefault(); @Override boolean isPrimitiveWrapper(); @Override R accept(WrapperVisitor<R, P, Q, TH> visitor, P p, Q q);  }### Answer:
@Test void set() { PrimitiveShortWrapper wrapper = new PrimitiveShortWrapper(); wrapper.set((short) 10); assertEquals((short) 10, wrapper.get()); wrapper.set(new BigDecimal(20)); assertEquals((short) 20, wrapper.get()); }
@Test void set_null() { PrimitiveShortWrapper wrapper = new PrimitiveShortWrapper(); wrapper.set(null); assertEquals((short) 0, wrapper.get()); wrapper.set((Number) null); assertEquals((short) 0, wrapper.get()); }