title: Gosu system table query failing in Gunits
body: <p>I have a Guidewire Gunit for a transformer in gosu which queries the system table to get a description for a result code which is working fine when run on the server but Gunit fails for the same.
  I have tried the annotation @ServerTest for Gunit but that is failing as well.
  The same code works fine in Gosu scratchpad.
  PFA the code snippet as follows:</p>
  
  <pre><code>var resultCodes = Query.make(SystemTable).select().where(\elt -&gt; elt.ResultCode == "AS01")
  </code></pre>
  
  <p>var description = ""</p>
  
  <pre><code>if(resultCodes != null &amp;&amp; !resultCodes.isEmpty())
  {
    description = resultCodes.get(0).getFullDescription()
  }
  </code></pre>
  
  <p>I'm getting the exception as follows : </p>
  
  <p>java.lang.IllegalStateException: TableMetadataFactory cannot be used before it is started</p>
  
  <p>Thanks,
  Deepti</p>