The test ensures that java.net.SocketException is thrown from
NMProxy.startContainers() without the RPC Request being retried.
With Oracle JDK 1.7 on OS X & Windows BindException is thrown from startContainers().
The testcase expects that SocketException is thrown - which is BindException's superclass.
The exception type check is implemented using string compare and not reflection, therefore the thrown BindException is not accepted.