### Question:
Serializers { @Nonnull public static ObjectMapper strict() { final ObjectMapper mapper = new ObjectMapper(); mapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false); mapper.configure(Feature.ALLOW_COMMENTS, true); mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, true); final SimpleModule module = new SimpleModule(); final PlainNumericSerializer plainNumericSerializer = new PlainNumericSerializer(); module.addSerializer(double.class, plainNumericSerializer); module.addSerializer(Double.class, plainNumericSerializer); module.registerSubtypes(DynamicFilters.getFilterTypes()); mapper.registerModule(module); return mapper; } private  Serializers(); @Nonnull static ObjectMapper getObjectMapper(); static ObjectMapper lenient(); @Nonnull static ObjectMapper strict();  }### Answer:
@Test public void testPlainNumericSerializerStrict() throws Exception { doTestPlainNumericSerializer(Serializers.strict()); }