Add removeMethod method
Add unit test
Merge pull request #3965 from neeckeloo/add-method-in-class-generator

Add removeMethod method in ClassGenerator
Merge branch 'feature/3965' into develop

Close #3965