HADOOP-10592. Add unit test case for net in hadoop native client (gujilangzi via cmccabe)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/HADOOP-10388@1596322 13f79535-47bb-0310-9956-ffa450edef68