protected String getResourceAsString(String location) {
        try {
            InputStream resourceStream = getClass().getResourceAsStream(location);
            String resourceAsString = IOUtils.toString(resourceStream);
            resourceStream.close();
            return resourceAsString;
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
Reads a system resource fully into a String

@param location
           Relative or absolute location of system resource.
@return String contents of resource file
@throws RuntimeException
            if any error occurs
aws-java-sdk-test-utils/src/main/java/com/amazonaws/test/AWSIntegrationTestBase.java