this.contents = contents;
}
private static ByteArrayConnection createConnection() {
ConnectionOptions options = new ConnectionOptions();
OperatingSystemFamily os = getLocalHostOperatingSystemFamily();
options.set(OPERATING_SYSTEM, os);
options.set(TEMPORARY_DIRECTORY_PATH, os.getDefaultTemporaryDirectoryPath());
return new ByteArrayConnection("byte_array", options);
}