I would like to use a dynamic proxy using Proxy.newProxyInstance for a generated classes (Swagger) and these are not implementing an interface, which brought me to
Proxy.newProxyInstance