startmacro
  res savepath opt.path  ! save previous path

  path add ucl
  if nxm.ucl.prim.midasbeantest.class nfexists then
    bld midasbeantest prim ucl
    assert/text="^reg.main.name: Compiled midasbeantest beandemo" nxm.ucl.prim.midasbeantest.class fexists
  endif

  nxm.ucl.prim.midasbeantest
endmacro
