ClassImpl extends ClassOrInterfaceImpl<Class> implements Class { @Override public Class setSupertype(Type superType) { this.superType = superType; return this; } ClassImpl(String name); protected  ClassImpl(Class prototype); @Override Class setSupertype(Type superType); @Override Optional<Type> getSupertype(); @Override List<Constructor> getConstructors(); @Override ClassImpl copy(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test void setSupertype() { instance().setSupertype(List.class); assertEquals(List.class, instance().getSupertype().orElseThrow(NoSuchElementException::new)); }