@Test
public void testReloadConfig() {   

    // Initialize new config service
    DSpaceConfigurationService dscs = new DSpaceConfigurationService();
    int size = dscs.getProperties().size();
    // Add two new Sytem properties
    System.setProperty("Hello","World");
    System.setProperty("Tim", "Donohue");
    // Assert the new properties are not yet loaded
    assertEquals(size, dscs.getProperties().size());
    dscs.reloadConfig();
    // Assert the new properties now exist
    assertEquals(size + 2, dscs.getProperties().size());
    // Set a new value
    System.setProperty("Hello", "There");
    // Assert old value still in Configuration
    assertEquals("World", dscs.getProperty("Hello"));
    dscs.reloadConfig();
    // Now, should be new value
    assertEquals("There", dscs.getProperty("Hello"));
    // Clear set properties
    System.clearProperty("Hello");
    System.clearProperty("Tim");
    // Assert value not yet cleared from Configuration
    assertEquals("There", dscs.getProperty("Hello"));
    dscs.reloadConfig();
    // Now, should be null
    assertNull(dscs.getProperty("Hello"));
    dscs.clear();
    dscs = null;
}