### Question:
BracketSettingsReader { public static void readInto(SettingsMap settingsMap, String rawSettings) { String[] settings = rawSettings.split(";"); for (String setting : settings) { String[] settingParts = setting.split("=", 2); String settingName = settingParts[0].toLowerCase().trim(); if (settingName.isEmpty()) { continue; } if (settingParts.length == 1) { RawSettingValue settingValue = RawSettingValue.ofPlainSetting(settingName, "true"); settingsMap.addRawSetting(settingValue); } else if (settingParts.length == 2) { RawSettingValue settingValue = RawSettingValue.ofPlainSetting(settingName, settingParts[1].trim()); settingsMap.addRawSetting(settingValue); } } }  static void readInto(SettingsMap settingsMap, String rawSettings);  }### Answer:
@Test public void testBasics() { SettingsMap settingsMap = new SimpleSettingsMap("Test", false); BracketSettingsReader.readInto(settingsMap, "Author=Some Author;Description=Some description"); assertEquals("Some Author", settingsMap.getSetting(WorldStandardValues.AUTHOR)); assertEquals("Some description", settingsMap.getSetting(WorldStandardValues.DESCRIPTION)); }
@Test public void testBooleanSettings() { SettingsMap settingsMap = new SimpleSettingsMap("Test", false); BracketSettingsReader.readInto(settingsMap, "VillagesEnabled;NetherFortressesEnabled"); assertTrue(settingsMap.getSetting(WorldStandardValues.VILLAGES_ENABLED)); assertTrue(settingsMap.getSetting(WorldStandardValues.NETHER_FORTRESSES_ENABLED)); }