build mock on the fly with inheritance of an arbitrary class

maybe it would be easier to integrate in manager class on existing projects