While trying to write gunits for form inference classes, getting the below error while setting the context. How can I achieve it?

While trying to write gunits for form inference classes, getting the below error while setting the context. How can I achieve it?

There's a compilation error since the constructor is protected and not intended to be used outside the
formspackage or a subclass. I don't think you need to initializeFormInferenceContextby calling the constructor. How about quoting or issuing the submission with the appropriate availability conditions and then checking the existence of the form using something likeYou can then write an assert on whether the form is found (available) or not. Reproducing or mimicking what happens in
FormInferenceEngineis not required for GUnits.