@Test public void testDeclaringType() throws Exception { for (Class<?> type : standardTypes) { assertThat( describe(type).getDeclaringType(), type.getDeclaringClass() == null ? nullValue(TypeDescription.class) : is((TypeDescription) new TypeDescription.ForLoadedType(type.getDeclaringClass()))); } }