integrate with gmock.