@Test
public void testIncorrectTimeValues() throws Exception {

    settings.setString(sessionID, Session.SETTING_START_TIME, "00:00:00");
    factory.create(sessionID, settings);
    // no exception
    setUpDefaultSettings(sessionID);
    settings.setString(sessionID, Session.SETTING_END_TIME, "16:00:00");
    factory.create(sessionID, settings);
    // no exception
    setUpDefaultSettings(sessionID);
    settings.setString(sessionID, Session.SETTING_START_TIME, "xx");
    createSessionAndAssertConfigError("no exception",
            "Session FIX.4.2:SENDER->TARGET: could not parse time 'xx'.");
    setUpDefaultSettings(sessionID);
    settings.setString(sessionID, Session.SETTING_END_TIME, "yy");
    createSessionAndAssertConfigError("no exception",
            "Session FIX.4.2:SENDER->TARGET: could not parse time 'yy'.");
}