Added ReplaceMethodMain and Tests for this class.