constr += "public "+getTypeName()+"(String name) {\nsuper(name);\n}\n\n";
constr += "public "+getTypeName()+"(String name) {" + getLineDelimiter() + "super(name);" + getLineDelimiter() + "}" + getLineDelimiter() + getLineDelimiter();
	protected void createConstructor(IType type, ImportsManager imports) throws JavaModelException {		ITypeHierarchy typeHierarchy= null;		IType[] superTypes= null;		String constr= ""; //$NON-NLS-1$		IMethod methodTemplate= null;		if (type.exists()) {			typeHierarchy= type.newSupertypeHierarchy(null);			superTypes= typeHierarchy.getAllSuperclasses(type);			for (int i= 0; i < superTypes.length; i++) {				if (superTypes[i].exists()) {					IMethod constrMethod= superTypes[i].getMethod(superTypes[i].getElementName(), new String[] {"Ljava.lang.String;"}); //$NON-NLS-1$					if (constrMethod.exists() && constrMethod.isConstructor()) {						methodTemplate= constrMethod;						break;					}				}			}		}		CodeGenerationSettings settings= JavaPreferencesSettings.getCodeGenerationSettings();		if (methodTemplate != null) {			GenStubSettings genStubSettings= new GenStubSettings(settings);			genStubSettings.fCallSuper= true;							genStubSettings.fMethodOverwrites= true;			constr= JUnitStubUtility.genStub(getTypeName(), methodTemplate, genStubSettings, imports);		} else {			constr += "public "+getTypeName()+"(String name) {\nsuper(name);\n}\n\n"; //$NON-NLS-1$ //$NON-NLS-2$		}		type.createMethod(constr, null, true, null);			fIndexOfFirstTestMethod++;	}