MethodParameterImpl implements Parameter { @Override public String toString() { final StringBuilder builder = new StringBuilder(); builder.append("MethodParameter [name="); builder.append(this.name); builder.append(", type="); builder.append(this.type.getPackageName()); builder.append("."); builder.append(this.type.getName()); builder.append("]"); return builder.toString(); } MethodParameterImpl(final String name, final Type type); @Override String getName(); @Override Type getType(); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString();  }
@Test public void testToString() { String toString = parameter1.toString(); assertTrue(toString.contains("MethodParameter")); }