private void verifyIllegalValue(String line) {
        String configId = "raw:" + line + "\n";
        try {
            new TestNonstring(configId);
            fail("Expected ConfigurationRuntimeException when setting a parameter value of wrong type.");
        } catch (RuntimeException expected) {
            verifyException(expected, "Not able to create config builder for payload", "Got ConfigurationRuntimeException for the wrong reason. " +
                    "Expected to fail when setting a parameter value of wrong type.");
        }

    }
Verifies that an exception is thrown when one attempts to set an
illegal config value for parameters that have default values.
config/src/test/java/com/yahoo/config/subscription/ConfigInstanceTest.java