private String getPolicyConfiguration(Configuration config) {
        if (StringUtils.isNotBlank(config.classpathConfigFile())) {
            try (InputStream configStream = getTestClass().getJavaClass().getClassLoader().getResourceAsStream(config.classpathConfigFile())) {
                return IOUtils.toString(configStream);

            } catch (IOException e) {
                throw new RuntimeException(String.format("Error loading policy configuration from file: %s",
                        config.classpathConfigFile()), e);
            }
        }

        // assume provided by the default annotation value
        return config.value();
    }
Returns the policy configuration as a String, based on the provided Configuration.

@param config the Configuration test annotation
@return the policy configuration
test/policies/src/main/java/io/apiman/test/policies/PolicyTester.java