title: Missing Dynamic method
body: <p>I´m trying to add a dynamic method in the Integer class</p>
  
  <pre><code>static {
      Integer.metaClass.daysInFuture {
          System.currentTimeMillis() + (60000 * 60 * 24 * delegate)
      }
  }
  </code></pre>
  
  <p>But when I try to use it</p>
  
  <pre><code>1.daysInFuture
  </code></pre>
  
  <p>I´m receiving</p>
  
  <pre><code>groovy.lang.MissingPropertyException: No such property: daysInFuture for class: java.lang.Integer
  </code></pre>
  
  <p>What I´m doing wrong?</p>
  
  <p>EDIT:</p>
  
  <p>I create this Unit Test</p>
  
  <pre><code>public class GroovyTest {
  
      static {
          Integer.metaClass.double {
              2 * delegate
          }
      }
  
      @Test
      public void test() throws IOException {
          assert 1.double == 2
      }
  
  }
  </code></pre>