@Test
public void testExec() throws Exception {

    assumeTrue(System.getProperty("jdk.module.path", "").isBlank());
    final ClasspathWorkflowRepository wfRepo = new ClasspathWorkflowRepository(TESTWORKFLOWS_PACKAGE);
    try {
        final TransientEngineFactory factory = new TransientEngineFactory() {
            @Override
            protected WorkflowRepository createWorkflowRepository() {
                return wfRepo;
            }
            @Override
            protected File getWorkflowSourceDirectory() {
                return null;
            }
        };
        TransientScottyEngine engine = factory.create();
        engine.run("org.copperengine.ext.wfrepo.classpath.testworkflows.TestWorkflowThree", "foo");
        Thread.sleep(1000);
    } finally {
        wfRepo.shutdown();
    }
}