@@ -0,0 +1,1244 @@
+package io.openvidu.server.test.unit;%0A%0Aimport static org.junit.jupiter.api.Assertions.assertFalse;%0Aimport static org.junit.jupiter.api.Assertions.assertTrue;%0A%0Aimport java.util.Arrays;%0Aimport java.util.List;%0A%0Aimport org.junit.jupiter.api.Test;%0A%0Aimport io.openvidu.server.utils.FormatChecker;%0A%0Apublic class FormatCheckerTest %7B%0A%0A%09@Test%0A%09void customSessionIdFormatTest() %7B%0A%09%09List%3CString%3E invalidCustomSessionIds = Arrays.asList(%22%22, %22session#%22, %22session!%22, %22session*%22, %22'session%22,%0A%09%09%09%09%22%5C%22session%22, %22sess(ion%22, %22sess_ion)%22, %22session:session%22, %22;session;%22, %22session@session%22, %22$%22,%0A%09%09%09%09%22&session%22, %22ses=sion%22, %22+%22, %22session,%22, %22/session%22, %22session?%22, %22session#%22, %22session%25%22, %22%5Bsession%5D%22,%0A%09%09%09%09%22session.%22, %22session~%22, %22~session%22, %22session~1%22, %22%5C%5Csession%22);%0A%0A%09%09List%3CString%3E validCustomSessionIds = Arrays.asList(%22s%22, %221%22, %22-%22, %22_%22, %22session%22, %22session1%22, %220session10%22,%0A%09%09%09%09%22-session%22, %22session-%22, %22-session-%22, %22_session%22, %22session_%22, %22_session_%22, %22_-session%22, %22session-_%22,%0A%09%09%09%09%22123_session-1%22);%0A%0A%09%09FormatChecker formatChecker = new FormatChecker();%0A%09%09for (String id : invalidCustomSessionIds)%0A%09%09%09assertFalse(formatChecker.isValidCustomSessionId(id));%0A%09%09for (String id : validCustomSessionIds)%0A%09%09%09assertTrue(formatChecker.isValidCustomSessionId(id));%0A%09%7D%0A%0A%7D

Add FormatChecker unit test