@BeforeAll
    public static void setup() throws Exception {
        val content = IOUtils.toString(new ClassPathResource("log4j2-test.xml.template").getInputStream(), StandardCharsets.UTF_8);
        try (val writer = new FileWriter(new File(FileUtils.getTempDirectory(), "log4j2.xml"), StandardCharsets.UTF_8)) {
            IOUtils.write(content, writer);
            writer.flush();
        }
    }
This is {@link LoggingConfigurationEndpointTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-reports/src/test/java/org/apereo/cas/web/report/LoggingConfigurationEndpointTests.java