A simple C++ example using googletest, Google C++ testing framerwork.