@GET
    @Path("/test")
    public String proxyTest() {
        StringBuilder retVal = new StringBuilder();
        DemoInterface proxy = ProxyFactory.create(DemoInterface.class, "http://localhost:8080/rest"); //Interface-based proxy

        String fancyOut = objectToJsonString(proxy.getStaticObject());
        if (fancyOut.equals(objectToJsonString(fancy))) {
            retVal.append("Interface-based client matches on LZF decompress. \n");
        } else {
            retVal.append("ERROR!  Interface-based DOES NOT match on LZF decompress. \n");
        }


        fancyOut = objectToJsonString(proxy.getStaticObjectGzip());
        if (fancyOut.equals(objectToJsonString(fancy))) {
            retVal.append("Interface-based client matches on GZIP decompress. \n");
        } else {
            retVal.append("ERROR!  Interface-based DOES NOT match on GZIP decompress. \n");
        }

        return retVal.toString();
    }
@ GET @ Path ( "/test" ) public String proxyTest ( ) { StringBuilder retVal = new StringBuilder ( ) ; DemoInterface proxy = ProxyFactory . create ( DemoInterface . class , "http://localhost:8080/rest" ) ; String fancyOut = objectToJsonString ( proxy . getStaticObject ( ) ) ; if ( fancyOut . equals ( objectToJsonString ( fancy ) ) ) { retVal . append ( "Interface-based client matches on LZF decompress. \n" ) ; } else { retVal . append ( "ERROR!  Interface-based DOES NOT match on LZF decompress. \n" ) ; } fancyOut = objectToJsonString ( proxy . getStaticObjectGzip ( ) ) ; if ( fancyOut . equals ( objectToJsonString ( fancy ) ) ) { retVal . append ( "Interface-based client matches on GZIP decompress. \n" ) ; } else { retVal . append ( "ERROR!  Interface-based DOES NOT match on GZIP decompress. \n" ) ; } return retVal . toString ( ) ; }
Test that REST clients are correctly working
@return