@Test
void initializeWithNoParameter() throws Exception
{

    ComponentManager componentManager = System.initialize();
    assertNotNull(componentManager);
    Environment environment = componentManager.getInstance(Environment.class);
    // Capture logs so that they don't leak in the test console
    ReflectionUtils.setFieldValue(environment, "logger", NOPLogger.NOP_LOGGER);
    // Verify that the temporary directory is `java.io.tmpdir`/xwiki-temp/
    assertEquals(TMPDIR, environment.getTemporaryDirectory());
    // Verify that the Permanent directory is java.io.tmpdir
    assertEquals(new File(java.lang.System.getProperty("java.io.tmpdir")),
        environment.getPermanentDirectory());
}