### Question:
ParameterDescriptor extends MemberDescriptor { @Override public String toString() { return methodDescriptor.toString(index); } ParameterDescriptor(AbstractMethodDescriptor methodDescriptor, Parameter parameter, int index); TypeDescriptor getType(); String getName(); int getIndex(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void constructor_parameter_toString() { TypeDescriptor type = DEFAULT.get(MyClass.class); ConstructorDescriptor constructor = type.getConstructors().get(new ConstructorSignature(String.class, Integer.class)); List<ParameterDescriptor> parameters = constructor.getParameters(); assertThat(parameters.get(0).toString()).isEqualTo("org.javersion.reflect.ParameterDescriptorTest$MyClass(*java.lang.String name*,java.lang.Integer)"); assertThat(parameters.get(1).toString()).isEqualTo("org.javersion.reflect.ParameterDescriptorTest$MyClass(java.lang.String,*java.lang.Integer integer*)"); }
@Test public void method_parameter_toString() { TypeDescriptor type = DEFAULT.get(MyClass.class); MethodDescriptor method = type.getMethods().get(new MethodSignature("method", MyClass.class)); List<ParameterDescriptor> parameters = method.getParameters(); assertThat(parameters.get(0).toString()).isEqualTo("org.javersion.reflect.ParameterDescriptorTest$MyClass.method(*org.javersion.reflect.ParameterDescriptorTest$MyClass myClass*)"); }