private File createCacheXml(String contents) throws IOException {
    File cacheXml = File.createTempFile("cache", "xml");
    PrintStream pstream = new PrintStream(cacheXml);
    pstream.print(contents);
    pstream.close();

    return cacheXml;
  }
Creates a temporary cache.xml on the file system.

@param contents cache.xml contents.
@return A File representing the created file.
@throws IOException something bad happened.
geode-core/src/distributedTest/java/org/apache/geode/internal/compression/CompressionCacheConfigDUnitTest.java