IP capability unit test

IP capability unit test using PowerMock and Mockito.