I've got some 3rd party beans that have method signatures that fit quite well onto an existing interface but it does not implement the interface.
Now I would like to do something like this, which doesn't work. Is there some workaround?
someBean.setSomeInterface(
new Interface() extends SomeBeanThatMatchesAlotOfMethodsOfTheInterface {
});