@Test
// QFJ-775
public void testSessionIDFileName() {

    SessionID sessionID = new SessionID(FixVersions.BEGINSTRING_FIX44, "SENDER???",
            "bla_/--/#()_bla", "!!!TARGET", "foo::bar");
    String sessionIdFileName = FileUtil.sessionIdFileName(sessionID);
    assertEquals("FIX.4.4-SENDER____bla__--_____bla-___TARGET_foo__bar", sessionIdFileName);
    assertTrue(sessionIdFileName.matches("[a-zA-Z0-9-._]*"));
    sessionID = new SessionID(FixVersions.BEGINSTRING_FIX44, "SENDER", "TARGET");
    sessionIdFileName = FileUtil.sessionIdFileName(sessionID);
    assertEquals("FIX.4.4-SENDER-TARGET", sessionIdFileName);
}