TypeAdapters { public <T> TypeAdapter<T> get(Type type) throws TypeAdapterNotFoundException { return get(type, false); } TypeAdapters(); TypeAdapter<T> get(Type type); TypeAdapter<T> get(Type type, boolean generic);  }
@Test public void instantiateOverReflections() throws IOException { TypeAdapters adapters = new TypeAdapters(); TypeAdapter<SampleClass> adapter = adapters.get(SampleClass.class); Assert.assertTrue(adapter instanceof SampleClass.$TypeAdapter); Assert.assertSame(adapter, adapters.get(SampleClass.class)); }