I have noticed that my JUnit tests take noticeable time. After debuging test I have found that logback library has this problem. As you can see in comments this is not bug with logback but with Java 7. But every time I run JUnit logback block for 10 second.
Solution is to edit /etc/hosts and add IP address and hostname as described here