For the test the output of 'ifconfig' is stubbed and for this case it's exactly like current output format of 'ifconfig'.
For the test case "white spaces differ" I have added or removed white spaces from current output format to check whether GetIpAddr will also work correctly then.