public void requireAtLeast(final int requiredMajor, final int requiredMinor) {
        final Version required = new Version(requiredMajor, requiredMinor);

        if (this.compareTo(required) < 0) {
            throw new UnsupportedOperationException(
                    "This operation requires API version at least " + requiredMajor + "." + requiredMinor
                                                    + ", currently configured for " + major
                                                    + "." + minor);
        }
    }
@Test
    public void shouldObserveApiLimitsOnMajorVersions() {
        assertThrows(UnsupportedOperationException.class,
                () -> V35_0.requireAtLeast(36, 0));
    }