InterfaceMethodImpl implements InterfaceMethod { @Override public Optional<Interface> getParent() { return m.getParent().map(Interface.class::cast); } InterfaceMethodImpl(Method wrapped); @Override InterfaceMethod setParent(Interface parent); @Override Optional<Interface> getParent(); @Override String getName(); @Override Type getType(); @Override List<Field> getFields(); @Override List<String> getCode(); @Override Set<Modifier> getModifiers(); @Override Optional<Javadoc> getJavadoc(); @Override List<AnnotationUsage> getAnnotations(); @Override List<Import> getImports(); @Override InterfaceMethod setName(String name); @Override InterfaceMethod set(Type type); @Override List<Generic> getGenerics(); @Override InterfaceMethod set(Javadoc doc); @Override Set<Type> getExceptions(); @Override InterfaceMethodImpl copy(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test void getParent() { assertEquals(Optional.empty(), instance().getParent()); }