public static ConfigPublishResponse buildFailResponse(int errorCode, String errorMsg) {
        ConfigPublishResponse configPublishResponse = new ConfigPublishResponse();
        configPublishResponse.setResultCode(ResponseCode.FAIL.getCode());
        configPublishResponse.setMessage(errorMsg);
        configPublishResponse.setErrorCode(errorCode);
        return configPublishResponse;
    }
@Override
    @Test
    public void testSerializeFailResponse() throws JsonProcessingException {
        ConfigPublishResponse configPublishResponse = ConfigPublishResponse.buildFailResponse(500, "Fail");
        String json = mapper.writeValueAsString(configPublishResponse);
        assertTrue(json.contains("\"resultCode\":" + ResponseCode.FAIL.getCode()));
        assertTrue(json.contains("\"errorCode\":500"));
        assertTrue(json.contains("\"message\":\"Fail\""));
        assertTrue(json.contains("\"success\":false"));
    }