public byte[] createJarFromClassContent(final String className, final String content)
      throws IOException {
    ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
    writeJarFromContent(className, content, byteArrayOutputStream);
    return byteArrayOutputStream.toByteArray();
  }
Create a JAR using the given class contents and with the given class name.

@param className Name of the class to create
@param content Content of the created class
@return The JAR file content
@throws IOException If there is a problem creating the output stream for the JAR file.
geode-junit/src/main/java/org/apache/geode/test/compiler/ClassBuilder.java