In the previous implementation, we used bla as the name of the collection because Jongo forced us to put some string. Let's create a specification that will define the name of the Mongo collection that we'll use:
@Test public void whenInstantiatedThenMongoCollectionHasNameGame() { TicTacToeCollection collection = new TicTacToeCollection(); assertEquals( "game", collection.getMongoCollection().getName()); }
This specification is almost identical to the previous one and probably self explanatory.