@Test
 public void testGenericType() throws Exception {
   DynamicType.Unloaded<?> unloaded = new ByteBuddy().redefine(GenericType.class).make();
   Class<?> type =
       unloaded
           .load(ClassLoadingStrategy.BOOTSTRAP_LOADER, ClassLoadingStrategy.Default.WRAPPER)
           .getLoaded();
   TypeDescription createdType = new TypeDescription.ForLoadedType(type);
   TypeDescription originalType = new TypeDescription.ForLoadedType(GenericType.class);
   assertThat(createdType.getTypeVariables(), is(originalType.getTypeVariables()));
   assertThat(createdType.getSuperClass(), is(originalType.getSuperClass()));
   assertThat(createdType.getInterfaces(), is(originalType.getInterfaces()));
 }