import io.reactivex.Completable;
import org.junit.Before;
import org.junit.Test;

import javax.ws.rs.GET;
import javax.ws.rs.Path;

import static org.junit.Assert.*;

public class ProxiedResourceTest extends RxJerseyTest {

    private TestResource testResource1;
    private TestResource testResource2;

    @Before
    public void setup() {
        testResource1 = resource(TestResource.class);
        testResource2 = resource(TestResource.class);
    }

    @Test
    public void proxySupportsEquals() {
        // Confirm that identity-based equals supported without an UnsupportedOperationException
        assertEquals(testResource1, testResource1);
        assertNotEquals(testResource1, testResource2);
        assertNotEquals("not a proxied resource", testResource1);
    }

    @Test
    public void proxySupportsHashcode() {
        // Confirm that hashCode can be invoked on the proxy object without an UnsupportedOperationException
        //noinspection ResultOfMethodCallIgnored
        testResource1.hashCode();
    }

    @Path("/endpoint")
    public interface TestResource {

        @GET
        @Path("empty")
        Completable empty();
    }
}

@@ -26,16 +26,72 @@
 etable;%0A
+import net.winterly.rxjersey.client.WebResourceFactory;%0A
 import o
@@ -416,17 +416,39 @@
 urce1 = 
-r
+WebResourceFactory.newR
 esource(
@@ -461,24 +461,40 @@
 source.class
+, target(), null
 );%0A        t
@@ -508,17 +508,40 @@
 urce2 = 
-r
+ WebResourceFactory.newR
 esource(
@@ -558,16 +558,32 @@
 ce.class
+, target(), null
 );%0A    %7D

Fix hashCode webresource tests