@Test
public void handlesNullValues() {

    final SortFieldExpression expression = new AttributeExpressionImpl("a/b/c/d/e/f/g");
    final SortOption sortOption = new SortOption(expression, SortDirection.ASC);
    GetSortBsonVisitor.sortValuesAsArray(new Document(), Collections.singletonList(sortOption));
}