@Test
    public void testMultithreadingOnList() {
        List<ThreadClass> l = new LinkedList();
        for (int i = 0; i < 100; i++) {
            ThreadClass t = new ThreadClass(chatServer);
            l.add(t);
            new Thread(t).start();
        }
        int dauer = 1000;
        while (dauer > 0) {
            this.chatServer.addNewUser("Thread" + dauer, "test");
            dauer--;
        }
        try {
            Thread.currentThread().sleep(10000);
        } catch (InterruptedException ex) {
            Logger.getLogger(ChatServerTest.class.getName()).log(Level.SEVERE, null, ex);
        }
        for (ThreadClass t : l) {
            t.running = false;
        }
    }