Better exception management.
Unit test using PowerMock and Mockito added to setIP() method in IPCapability.
Merge pull request #770 from logoff/testing/ip-capability

IP capability unit test