func TestBsonToModel(t *testing.T) {
	dummyVal := Dummy{"Nick", true}
	doc, docErr := GetDocumentFromModel(dummyVal)
	assert.Equal(t, nil, docErr)
	assert.Equal(t, dummyVal.Name, doc.Lookup("name").StringValue())
	assert.Equal(t, dummyVal.Verified, doc.Lookup("verified").Boolean())
	testDummy := &Dummy{}
	docErr = GetModelFromDocument(doc, testDummy)
	assert.Equal(t, nil, docErr)
	assert.Equal(t, dummyVal.Name, testDummy.Name)
	assert.Equal(t, dummyVal.Verified, testDummy.Verified)
}
Test BSON Model utils
package models
import (
	"testing"
	"github.com/stretchr/testify/assert"
)
type Dummy struct {
	Name     string `bson:"name"`
	Verified bool   `bson:"verified"`
}