Fongo ("Fake Mongo") is a in-memory re-implementation of MongoDB written in Java. The goal of the project is to use it for lightweight unit testing and not production databases.
The project started at Foursquare in 2012 and has since moved to a community repository.
N-ary Storage Model (Row/Record)
Document / XML