public void setSendFullErrorException(boolean sendFullErrorException) {
        this.sendFullErrorException = sendFullErrorException;
    }
@Test
    void handleFlowableForbiddenExceptionWithoutSendFullErrorException() throws Exception {
        testController.exceptionSupplier = () -> new FlowableForbiddenException("no access to task");
        handlerAdvice.setSendFullErrorException(false);

        String body = mockMvc.perform(get("/"))
                .andExpect(status().isForbidden())
                .andReturn()
                .getResponse()
                .getContentAsString();

        assertThatJson(body)
                .isEqualTo("{"
                        + "  message: 'Forbidden',"
                        + "  exception: 'no access to task'"
                        + "}");

    }