Test that RestService getResourceBySupportedClass handles proxy classes