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