The logic for this is located in the DocumentMapper class, it would make sense to have this test there (maybe). But its a unit test.