title: Create Enumeration of objects
body: <p>I need to create a <code>java.util.Enumeration</code> of Fruit objects so that I can pass it to this method during my test. It's a legacy code and I cannot change method signature.</p>
  
  <pre><code>public void get(Enumeration&lt;Fruit&gt; fruits){}
  </code></pre>
  
  <p>My fruit class:</p>
  
  <pre><code>public class Fruit{
      String name;
      //getters and setters   
  }
  </code></pre>
  
  <p>How can I create an Enumeration of Fruit objects? </p>