I just built myself a sort of Solr-schema-in-a-test-tube. It's a class that builds a classloader on some JAR files and then uses the SPI mechanism to manufacture Analyzer objects made out of tokenizers and filters.
I can make this visible in github, or even attach it to a JIRA, if anyone is interested. For my own nefarious reasons, this acquires the JAR files from Maven repositories via Aether, but it wouldn't be hard to adjust for use with plain old pathnames or something.