### Question:
ObjectHandler implements Serializable { public Serializable getObject() { return (Serializable) object; } ObjectHandler(Object obj); boolean isGraalObject(); boolean isGraalObject(Object object); Object invoke(String method, ArrayList<Object> params); Serializable getObject(); void setObject(Serializable object); void write(ObjectOutputStream out); void read(ObjectInputStream in);  }### Answer:
@Test public void testJavaObject() throws Exception { String s = "helloworld"; ObjectHandler obj = new ObjectHandler(s); byte[] bytes = Utils.toBytes(obj); ObjectHandler obj2 = (ObjectHandler) Utils.toObject(bytes); assert s.equals(obj2.getObject()); }