@Test
void initializeWithAllDirectoriesSet() throws Exception
{

    File permanentDirectory = new File("/permanent");
    File temporaryDirectory = new File("/temporary");
    File resourceDirectory = new File("/resource");
    ComponentManager componentManager =
        System.initialize(permanentDirectory, resourceDirectory, temporaryDirectory);
    assertNotNull(componentManager);
    Environment environment = componentManager.getInstance(Environment.class);
    // Verify the temporary directory
    assertEquals(temporaryDirectory, environment.getTemporaryDirectory());
    // Verify the Permanent directory
    assertEquals(permanentDirectory, environment.getPermanentDirectory());
}