ConfigurationSection { public String removeVariable(String name) { return variables.remove(name); } ConfigurationSection(); String removeVariable(String name); String getVariable(String name); boolean setVariable(String name, String value); Iterator<String> variableNames(); boolean hasVariables(); static int getIntegerValue(String value); static ValueList getListValue(String value, String separator); static float getFloatValue(String value); static boolean getBooleanValue(String value); static long getLongValue(String value); static double getDoubleValue(String value); static String getValue(int value); static String getValue(List<String> value, String separator); static String getValue(float value); static String getValue(boolean value); static String getValue(long value); static String getValue(double value); ConfigurationSection addSection(String name); ConfigurationSection removeSection(String name); boolean removeSection(ConfigurationSection section); ConfigurationSection getSection(String name); Iterator<String> sectionNames(); boolean hasSections(); boolean isEmpty(); void clear();  }
@Test(dataProvider = "setVariable") public void testRemoveVariable(String value) { ConfigurationSection section; section = new ConfigurationSection(); assert section.setVariable("var", value); assertVariable(section, "var", value); assert value == null ? section.removeVariable("var") == null : section.removeVariable("var").equals(value); }