### Question:
JavaSerializationMarshaller extends AbstractMarshaller { @Override public boolean isMarshallable(Object o) { return o instanceof Serializable; } JavaSerializationMarshaller();  JavaSerializationMarshaller(ClassAllowList allowList); @Override void initialize(ClassAllowList classAllowList); @Override Object objectFromByteBuffer(byte[] buf, int offset, int length); @Override boolean isMarshallable(Object o); @Override MediaType mediaType();  }### Answer:
@Test public void testBoxedPrimitivesAndArray() throws Exception { JavaSerializationMarshaller marshaller = new JavaSerializationMarshaller(); isMarshallable(marshaller, Byte.MAX_VALUE); isMarshallable(marshaller, Short.MAX_VALUE); isMarshallable(marshaller, Integer.MAX_VALUE); isMarshallable(marshaller, Long.MAX_VALUE); isMarshallable(marshaller, Float.MAX_VALUE); isMarshallable(marshaller, Double.MAX_VALUE); isMarshallable(marshaller, 'c'); isMarshallable(marshaller, "String"); }
@Test public void testMath() throws Exception { JavaSerializationMarshaller marshaller = new JavaSerializationMarshaller(); isMarshallable(marshaller, BigDecimal.TEN); isMarshallable(marshaller, BigInteger.TEN); }
@Test public void testDate() throws Exception { JavaSerializationMarshaller marshaller = new JavaSerializationMarshaller(); isMarshallable(marshaller, Instant.now()); }