SnakerEngineFacets { public String initFlows() { ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); InputStream stream = classLoader.getResourceAsStream("flows/leave.snaker"); String deploy = engine.process().deploy(stream); return deploy; }  String initFlows(); List<Process> getAllProcess(); List<Process> getProcessByOrderId(String orderId); SnakerEngine getEngine(); List<String> getAllProcessNames(); Order startInstanceById(String processId, String operator, Map<String, Object> args); Order startInstanceByName(String name, Integer version, String operator, Map<String, Object> args); Order startAndExecute(String name, Integer version, String operator, Map<String, Object> args); Order startAndExecute(String processId, String operator, Map<String, Object> args); List<Task> execute(String taskId, String operator, Map<String, Object> args); List<Task> executeAndJump(String taskId, String operator, Map<String, Object> args, String nodeName); List<Task> getTasks(String orderId);  }
@Test public void initFlows() { String flows = snakerEngineFacets.initFlows(); Assert.assertNotNull(flows); }