title: How do I dump a groovy representation to YAML and avoid having untagged nodes?
body: <p>I want to dump the following structure to a YAML file:</p>
  
  <pre><code>public class TestSuite {
      String name
      List testCases = []
  }
  </code></pre>
  
  <p>Where the list of test cases are this class:</p>
  
  <pre><code>class TestCase {
      String name
      String id
  }
  </code></pre>
  
  <p>What I want it to look like is this:</p>
  
  <pre><code>name: Carrier Handling and Traffic
  testCases:
  - name: Call setup by UE
    id: DCM00000001
  </code></pre>
  
  <p>But it ends up looking like this:</p>
  
  <pre><code>name: Carrier Handling and Traffic
  testCases:
  - !!com.package.path.TestCase
    name: Call setup by UE
    id: DCM00000001
  </code></pre>
  
  <p>I guess it has to do with the fact that the List isn't a tagged data structure but I can't figure out how I can get the name of the test case to represent the object. Tips?</p>