.insert( "GolfPlayer", getPlayer() )
.insert( "GolfCourse", getGolfCourse() )
.insert( "Associations", getPlayedCoursesAssociationAsDocument() )
.build();
setupSessionFactory( new MongoDBDatastoreProvider( mockClient.getClient() ), AssociationStorageType.ASSOCIATION_DOCUMENT );
Session session = sessions.openSession();
Transaction transaction = session.beginTransaction();
// when merging the player with two associated courses