Running tests is the most comfortable example here. You may easily combine it with eg jUnit tests, but it's not the only way. Before running tests, please put something like:
lui = Lordui.createInstance(); try { lui.loadProject(new File("myLorduiProcedureFile.lui")); } catch (IOException e) { e.printStackTrace(); return; }
then, after creating your UI you may safely run Lordui procedure and dispose all allocated resources after all:
lui.runProcedureAndWait("LorduiProcedureName"); lui.close();
Such an example of Lordui usage you may find in chapter: 4.5.1: ''sec:Lordui_library_interface''.