Some examples of how to use the MongoDB Java driver, via unit tests.