@Test
public void testExtendedSettings() throws ConfigError {

    String settingsString = "";
    settingsString += "[SESSION]\n";
    settingsString += "BeginString=FIX.4.2\n";
    settingsString += "SenderCompID=Company\n";
    settingsString += "SenderSubID=FixedIncome\n";
    settingsString += "SenderLocationID=HongKong\n";
    settingsString += "TargetCompID=CLIENT1\n";
    settingsString += "TargetSubID=HedgeFund\n";
    settingsString += "TargetLocationID=NYC\n";
    final SessionSettings settings = new SessionSettings(new ByteArrayInputStream(
            settingsString.getBytes()));
    final SessionID id = settings.sectionIterator().next();
    assertEquals("Company", id.getSenderCompID());
    assertEquals("FixedIncome", id.getSenderSubID());
    assertEquals("HongKong", id.getSenderLocationID());
    assertEquals("CLIENT1", id.getTargetCompID());
    assertEquals("HedgeFund", id.getTargetSubID());
    assertEquals("NYC", id.getTargetLocationID());
}