次のスクリプトの例は、サンプルの JUnit テスト ケースをインポートして生成されたものです。
var
  hTestClass : number;
dcltrans
  transaction TInit
  begin
      // Load and start the JVM.
      JavaCreateJavaVM();
      // instantiate the java class
      hTestClass := JUnitLoadClass("com/microfocus/Test");
  end TInit;
  transaction THello
  begin
    JUnitExecuteTest(hTestClass, "doHello", "doHello_timer");
    JUnitExecuteTest(hTestClass, "", "Test_timer");
  end THello;
  transaction TEnd
  begin
    JavaFreeObject(hTestClass);
  end TEnd;