title: Mole Stub and Attributes
body: <p>I am creating a Unit Test for a certain method that loads all the types that was decorated by a <code>PluginAttribute</code>.</p>
  
  <p>Instead of manually creating a stub and decorating it with PluginAttribute, is there a way to "inject" an attribute on the Moles generated stub object?</p>
  
  <pre><code>            foreach (Type t in types)
              {
  
                      var attr = Attribute.GetCustomAttribute(t, typeof(PluginAttribute), false) as PluginAttribute;
                      if (attr != null)
                      {
                          _checksLookup.Add(attr.ElementName, t);
                      }
  
                  }
              }
  </code></pre>