class ResourceUtils {

    public static InputStream getResourceWithAbsolutePackagePathAsStream(String absolutePackagePath, String resourceName) {
        return getResourceWithAbsolutePackagePathAsStream(ResourceUtils.class, absolutePackagePath, resourceName);
    }

}

class ResourceUtilsTest {

    @Test
    public void testResourceLoadingGetClass() {

        InputStream stream = ResourceUtils.getResourceWithAbsolutePackagePathAsStream(getClass(), "/org/reficio/ws/common/test/", "soapEncoding.xsd");
        Assert.assertNotNull(stream);
    }

}