groovy

Using metaClass to override methods in class hierarchy does not work as expected