public static byte[] toByteArray(final URL url) throws IOException {
        try (InputStream inputStream = url.openStream()) {
            return toByteArray(inputStream);
        }
    }
@param inputStream streams are closed by the caller
agent-module/plugins-test-module/plugins-test/src/main/java/com/navercorp/pinpoint/test/plugin/util/IOUtils.java