title: Subclassing a Class using ByteBuddy results in a class without any declared methods
body: <p>I'm missing something obvious here, but I don't see the declared methods when I subclass a Class using ByteBuddy.</p>
  
  <pre><code>Object.class.getDeclaredMethods()
  </code></pre>
  
  <p>result:</p>
  
  <pre><code>[protected void java.lang.Object.finalize() throws java.lang.Throwable, public final void java.lang.Object.wait(long,int) throws java.lang.InterruptedException, public final native void java.lang.Object.wait(long) throws java.lang.InterruptedException, public final void java.lang.Object.wait() throws java.lang.InterruptedException, public boolean java.lang.Object.equals(java.lang.Object), public java.lang.String java.lang.Object.toString(), public native int java.lang.Object.hashCode(), public final native java.lang.Class java.lang.Object.getClass(), protected native java.lang.Object java.lang.Object.clone() throws java.lang.CloneNotSupportedException, private static native void java.lang.Object.registerNatives(), public final native void java.lang.Object.notify(), public final native void java.lang.Object.notifyAll()]
  </code></pre>
  
  <p>Now using ByteBuddy:</p>
  
  <pre><code>new ByteBuddy().subclass(Object.class)
  .make()
  .load(getClass().getClassLoader(), ClassLoadingStrategy.Default.INJECTION)
  .getLoaded().getDeclaredMethods()
  </code></pre>
  
  <p>result: </p>
  
  <pre><code>[]
  </code></pre>