Code review comment: We should use logger here and at other places in this class.  It is available from TestSuiteBase, which gets it from DocumentClientTest

Code under review:
public void beforeClass() throws Exception {
        System.out.println("OrderbyDocumentQueryTest.beforeClass");
        client = clientBuilder().build();
        createdDatabase = getSharedCosmosDatabase(client);
        createdCollection = getSharedMultiPartitionCosmosContainer(client);
        System.out.println("bef: truncate collection");
        truncateCollection(createdCollection);
        System.out.println("after: truncate collection");

        List<Map<String, Object>> keyValuePropsList = new ArrayList<>();
        Map<String, Object> props;
        System.out.println("bef: create 30 docs");
        for(int i = 0; i < 30; i++) {
            props = new HashMap<>();
            props.put("propInt", i);
            props.put("propStr", String.valueOf(i));
            keyValuePropsList.add(props);
        }

        System.out.println("OrderbyDocumentQueryTest.beforeClass : created 30 docs");

        
        props = new HashMap<>();
        keyValuePropsList.add(props);

        createdDocuments = bulkInsert(createdCollection, keyValuePropsList);

        for(int i = 0; i < 10; i++) {
            Map<String, Object> p = new HashMap<>();
            p.put("propScopedPartitionInt", i);
            CosmosItemProperties doc = getDocumentDefinition("duplicateParitionKeyValue", UUID.randomUUID().toString(), p);
            CosmosItemRequestOptions options = new CosmosItemRequestOptions();
            options.partitionKey(new PartitionKey(doc.get("mypk")));
            createdDocuments.add(createDocument(createdCollection, doc).read(options).block().properties());

        }

        System.out.println("OrderbyDocumentQueryTest.beforeClass : created 10 docs");

        numberOfPartitions = CosmosBridgeInternal.getAsyncDocumentClient(client)
                .readPartitionKeyRanges("dbs/" + createdDatabase.id() + "/colls/" + createdCollection.id(), null)
                .flatMap(p -> Flux.fromIterable(p.results())).collectList().single().block().size();

        System.out.println("numberOfPartitions = " + numberOfPartitions);

        waitIfNeededForReplicasToCatchUp(clientBuilder());
    }

Line commented on: System.out.println("OrderbyDocumentQueryTest.beforeClass");

Revised code:
public void beforeClass() throws Exception {
        client = clientBuilder().build();
        createdDatabase = getSharedCosmosDatabase(client);
        createdCollection = getSharedMultiPartitionCosmosContainer(client);
        truncateCollection(createdCollection);

        List<Map<String, Object>> keyValuePropsList = new ArrayList<>();
        Map<String, Object> props;
        for(int i = 0; i < 30; i++) {
            props = new HashMap<>();
            props.put("propInt", i);
            props.put("propStr", String.valueOf(i));
            keyValuePropsList.add(props);
        }

        
        props = new HashMap<>();
        keyValuePropsList.add(props);

        createdDocuments = bulkInsert(createdCollection, keyValuePropsList);

        for(int i = 0; i < 10; i++) {
            Map<String, Object> p = new HashMap<>();
            p.put("propScopedPartitionInt", i);
            CosmosItemProperties doc = getDocumentDefinition("duplicateParitionKeyValue", UUID.randomUUID().toString(), p);
            CosmosItemRequestOptions options = new CosmosItemRequestOptions();
            options.partitionKey(new PartitionKey(doc.get("mypk")));
            createdDocuments.add(createDocument(createdCollection, doc).read(options).block().properties());

        }

        numberOfPartitions = CosmosBridgeInternal.getAsyncDocumentClient(client)
                .readPartitionKeyRanges("dbs/" + createdDatabase.id() + "/colls/" + createdCollection.id(), null)
                .flatMap(p -> Flux.fromIterable(p.results())).collectList().single().block().size();

        waitIfNeededForReplicasToCatchUp(clientBuilder());
    }