private static void assertMasterSecretValidatorImplForJavaVersion(Class<? extends MasterSecretValidator> masterSecretValidatorImpl,
                                                                      JavaVersion javaVersion) {

        assertThat(MasterSecretValidators.getMasterSecretValidator(javaVersion), instanceOf(masterSecretValidatorImpl));
    }
Asserts that the correct implementation of {@link MasterSecretValidator} is returned per the
JavaVersion

@param masterSecretValidatorImpl
           Expected implementation of {@link MasterSecretValidator}
@param javaVersion
           Java version used
aws-java-sdk-core/src/test/java/com/amazonaws/http/conn/ssl/MasterSecretValidatorsTest.java