static void checkCompositeBatchVersion(final String configuredVersion, final Version batchVersion)
            throws SalesforceException {
        if (Version.create(configuredVersion).compareTo(batchVersion) < 0) {
            throw new SalesforceException(
                    "Component is configured with Salesforce API version " + configuredVersion
                                          + ", but the payload of the Composite API batch operation requires at least "
                                          + batchVersion,
                    0);
        }
    }
@Test
    public void shouldAllowNewerPayloadsWhenConfiguredWithNewerVersion() throws SalesforceException {
        final SObjectBatch batch = new SObjectBatch(V34_0);

        DefaultCompositeApiClient.checkCompositeBatchVersion(V35_0, batch.getVersion());
    }