@BeforeAll
public static void initBsonDocs() {
flatStructKey = new BsonDocument();
flatStructKey.put("_id", new BsonObjectId(ObjectId.get()));
flatStructKey.put("myBoolean",new BsonBoolean(true));
flatStructKey.put("myInt",new BsonInt32(42));
flatStructKey.put("myBytes",new BsonBinary(new byte[] {65,66,67}));
BsonArray ba1 = new BsonArray();
ba1.addAll(Arrays.asList(new BsonInt32(1),new BsonInt32(2),new BsonInt32(3)));
flatStructKey.put("myArray", ba1);
flatStructValue = new BsonDocument();
flatStructValue.put("myLong",new BsonInt64(42L));
flatStructValue.put("myDouble",new BsonDouble(23.23d));
flatStructValue.put("myString",new BsonString("BSON"));
flatStructValue.put("myBytes",new BsonBinary(new byte[] {120,121,122}));
BsonArray ba2 = new BsonArray();
ba2.addAll(Arrays.asList(new BsonInt32(9),new BsonInt32(8),new BsonInt32(7)));
flatStructValue.put("myArray", ba2);
nestedStructKey = new BsonDocument();
nestedStructKey.put("_id", new BsonDocument("myString", new BsonString("doc")));
nestedStructKey.put("mySubDoc", new BsonDocument("mySubSubDoc",
new BsonDocument("myInt",new BsonInt32(23))));
nestedStructValue = new BsonDocument();
nestedStructValue.put("mySubDocA", new BsonDocument("myBoolean", new BsonBoolean(false)));
nestedStructValue.put("mySubDocB", new BsonDocument("mySubSubDocC",
new BsonDocument("myString",new BsonString("some text..."))));
}