We have emma configured in our project which generates the coverage report. Whole setup was working fine until I introducted PowerMock to mock some of the static methods.

When I annotate a class with @RunWith(PowerMockRunner.class), emma tries to start coverage process again and throws up addressbind exception. I think maven surefire is forking a new JVM for different runner and emma tries to startup again on new JVM.

I tried with different options for surefire forkMode, but does not help.
`Running util.HttpClientFactoryTest
 Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.154 sec
 Running xxx.util.ServiceConnectorUtilTest
 EMMA: collecting runtime coverage data ...
 java.net.BindException: Address already in use: JVM_Bind
 at java.net.PlainSocketImpl.socketBind(Native Method)
 at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)`

An idea on how to get around this? Any help greatly appretiated. Thanks