public static Object getRequestWithoutData(Object message) {
        if (logger.isDebugEnabled()) {
            return message;
        }
        if (message instanceof Request) {
            Request request = (Request) message;
            request.setData(null);
            return request;
        } else if (message instanceof Response) {
            Response response = (Response) message;
            response.setResult(null);
            return response;
        }
        return message;
    }
@Test
    void test() {
        Request request = new Request(1);
        request.setData(new Object());
        Request requestWithoutData = (Request) PayloadDropper.getRequestWithoutData(request);
        Assertions.assertEquals(requestWithoutData.getId(), request.getId());
        Assertions.assertNull(requestWithoutData.getData());

        Response response = new Response(1);
        response.setResult(new Object());
        Response responseWithoutData = (Response) PayloadDropper.getRequestWithoutData(response);
        Assertions.assertEquals(responseWithoutData.getId(), response.getId());
        Assertions.assertNull(responseWithoutData.getResult());

        Object object = new Object();
        Assertions.assertEquals(object, PayloadDropper.getRequestWithoutData(object));
    }