private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException {
        s.defaultReadObject();
        // Deserialization parameters
        Object[] a = new Object[length];
        for (int i = 0; i < length; i++) {
            a[i] = s.readObject();
        }
        this.parameters = a;
    }
@Test
    public void testReadObject() throws IOException, ClassNotFoundException {
        Object[] parameters = new Object[1];
        parameters[0] = hippo4j;
        Request request = new DefaultRequest(rid, name, parameters);
        byte[] bytes;
        try (
                ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
                ObjectOutputStream outputStream = new ObjectOutputStream(byteArrayOutputStream)) {
            outputStream.writeObject(request);
            outputStream.flush();
            bytes = byteArrayOutputStream.toByteArray();
        }
        Request request1;
        try (
                ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(bytes);
                ObjectInputStream objectInputStream = new ObjectInputStream(byteArrayInputStream)) {
            request1 = (Request) objectInputStream.readObject();
        }
        Assert.assertEquals(request1.hashCode(), request1.hashCode());
        Assert.assertEquals(name, request1.getKey());
        Assert.assertEquals(rid, request1.getRID());
        Assert.assertArrayEquals(parameters, request1.getParameters());
        Assert.assertEquals(request1, request);
    }