@Test
public void testVariableInterpolationInDefaultSection() throws Exception {

    System.setProperty("sender", "SENDER");
    System.setProperty("target", "TARGET");
    String settingsString = "";
    settingsString += "[DEFAULT]\n";
    settingsString += "SenderCompID=${sender}\n";
    settingsString += "[SESSION]\n";
    settingsString += "BeginString=FIX.4.2\n";
    settingsString += "TargetCompID=${target}\n";
    final SessionSettings settings = createSettingsFromString(settingsString);
    assertEquals("wrong value", "SENDER", settings.getString("SenderCompID"));
    final SessionID sessionID = new SessionID("FIX.4.2", "SENDER", "TARGET");
    assertEquals("wrong value", "SENDER", settings.getString(sessionID, "SenderCompID"));
    assertEquals("wrong value", "TARGET", settings.getString(sessionID, "TargetCompID"));
}