@Converter
    public static PartitionKey toPartitionKey(final String partitionKeyAsString) {
        if (ObjectHelper.isNotEmpty(partitionKeyAsString)) {
            return new PartitionKey(partitionKeyAsString);
        }
        return null;
    }
@Test
    void testStringToPartitionKey() {
        final String inputStr = "test-key";
        final PartitionKey output = CosmosDbTypeConverter.toPartitionKey(inputStr);

        assertTrue(output.toString().contains(inputStr));

        // in empty case
        assertNull(CosmosDbTypeConverter.toPartitionKey(""));
    }