Fixing wrong handling of server socket SHDP-138

Additional tests for net/nio sockets.
Merge branch 'SHDP-138' of https://github.com/jvalkeal/spring-hadoop into jvalkeal-SHDP-138
Merge pull request #10 from jvalkeal/SHDP-138