Some codeparts afor GMock/GTest integration.