@Test
public void testVariableNames() {

    ConfigurationSection section;
    section = new ConfigurationSection();
    // Create 10 variables.
    for(int i = 0; i < 10; i++)
        section.setVariable("var" + i, "value");
    assertVariableNames(section, 10);
    section.setVariable("var9", "");
    assertVariableNames(section, 9);
    section.setVariable("var8", null);
    assertVariableNames(section, 8);
    section.removeVariable("var7");
    assertVariableNames(section, 7);
    for(int i = 0; i < 7; i++)
        section.removeVariable("var" + i);
    assertVariableNames(section, 0);
}