private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException {
        s.defaultReadObject();
        // Deserialization obj
        if (!isErr()) {
            this.obj = s.readObject();
        }
    }
@Test
    public void testReadObject() throws IOException, ClassNotFoundException {
        Response response = new DefaultResponse(rid, o);
        byte[] bytes;
        try (
                ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
                ObjectOutputStream outputStream = new ObjectOutputStream(byteArrayOutputStream)) {
            outputStream.writeObject(response);
            outputStream.flush();
            bytes = byteArrayOutputStream.toByteArray();
        }
        Response response1;
        try (
                ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(bytes);
                ObjectInputStream objectInputStream = new ObjectInputStream(byteArrayInputStream)) {
            response1 = (Response) objectInputStream.readObject();
        }
        Assert.assertEquals(response1.hashCode(), response.hashCode());
        Assert.assertEquals(rid, response1.getRID());
        Assert.assertEquals(o, response1.getObj());
        Assert.assertEquals(response1, response);
        Assert.assertFalse(response1.isErr());
    }