.agilefaqs.com/2009/11/08/enabling-multicast-on-your-macos-unix/" >here. Now running the test manually should succeed (
but only when using Java7+):
mvn test -Djava.net.preferIPv4Stack=true -Dtest=NettyUDPMulticastAsyncTest
Please note that using the JUnit {@link BeforeClass} annotation together withthe corresponding {@link System#setProperty(String,String) Java API} to setthe {@code java.net.preferIPv4Stack} system property would not work here asat that moment it would be too
late to set this system property. On the other hand setting such a system property through the surefire-plugin would cause side effect by the other tests of this component.