add a method to make a gmock by a class