Is it possible to load a changelog from a string?

I’m creating code to dump a database to an SQL string that eventually will be returned from a REST endpoint.

For now I’m in a unit test, and I would like to test the generated SQL by applying it as a liquibase changelog to a derby memory database.

Is there a way to apply a string as a changelog, instead of loading it from a file?


If I’m lucky, the MockResourceAccessor may do what I want.