There is a test for mongodb EmbeddableMappingTest and I think I've applied the right logic by filtering things in EntityDocument but I am not certain.