Program: 118315
Project: 118315
Buggy source:
@Test public void testBuildParameterFromTypes() throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException, NoSuchMethodException, InvocationTargetException {
  ParameterInfo parameter=new ParameterInfo();
  String name="String_Node_Str";
  String nameSpace="String_Node_Str";
  parameter.setName(name);
  parameter.setNameSpace(nameSpace);
  ComponentBuilder cb=new ComponentBuilder();
  Field field=cb.getClass().getDeclaredField("String_Node_Str");
  field.setAccessible(true);
  List<XmlSchemaType> allXmlSchemaType=(List<XmlSchemaType>)field.get(cb);
  XmlSchema first=new XmlSchema();
  first.setId("String_Node_Str");
  XmlSchemaSimpleType xsst=new XmlSchemaSimpleType(first);
  xsst.setId("String_Node_Str");
  xsst.setName("String_Node_Str");
  xsst.setSourceURI("String_Node_Str");
  XmlSchema two=new XmlSchema();
  two.setId("String_Node_Str");
  two.setTargetNamespace(nameSpace);
  String nameSpaceTwo="String_Node_Str";
  XmlSchemaComplexType xsc=new XmlSchemaComplexType(two);
  XmlSchemaSequence xmlSchemaSequence=new XmlSchemaSequence();
  xmlSchemaSequence.setId("String_Node_Str");
  XmlSchemaElement xmlSchemaElement=new XmlSchemaElement();
  xmlSchemaElement.setSourceURI(nameSpaceTwo);
  xmlSchemaElement.setQName(new QName(nameSpaceTwo,"String_Node_Str"));
  xmlSchemaElement.setName(name);
  xmlSchemaSequence.getItems().add(xmlSchemaElement);
  xsc.setParticle(xmlSchemaSequence);
  xsc.setId("String_Node_Str");
  xsc.setName("String_Node_Str");
  XmlSchemaComplexContent contentModel=new XmlSchemaComplexContent();
  XmlSchemaComplexContentExtension xmlSchemaContent=new XmlSchemaComplexContentExtension();
  xmlSchemaContent.setId("String_Node_Str");
  xmlSchemaContent.setBaseTypeName(new QName(nameSpace,"String_Node_Str"));
  xmlSchemaContent.setSourceURI(nameSpaceTwo);
  contentModel.setSourceURI(nameSpace);
  contentModel.setContent(xmlSchemaContent);
  xsc.setContentModel(contentModel);
  allXmlSchemaType.add(xsst);
  allXmlSchemaType.add(xsc);
  Method m=cb.getClass().getDeclaredMethod("String_Node_Str",new Class[]{String.class,String.class,ParameterInfo.class,int.class});
  m.setAccessible(true);
  m.invoke(cb,nameSpace,name,parameter,5);
  ParameterInfo parameterInfo=parameter.getParameterInfos().get(0);
  Assert.assertNotNull(parameterInfo);
  Assert.assertEquals(nameSpace,parameterInfo.getNameSpace());
}

Fixed version (ground truth):
@Test public void testBuildParameterFromTypes() throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException, NoSuchMethodException, InvocationTargetException, WSDLException {
  ParameterInfo parameter=new ParameterInfo();
  String name="String_Node_Str";
  String nameSpace="String_Node_Str";
  parameter.setName(name);
  parameter.setNameSpace(nameSpace);
  ComponentBuilder cb=new ComponentBuilder();
  Field field=cb.getClass().getDeclaredField("String_Node_Str");
  field.setAccessible(true);
  List<XmlSchemaType> allXmlSchemaType=(List<XmlSchemaType>)field.get(cb);
  XmlSchema first=new XmlSchema();
  first.setId("String_Node_Str");
  XmlSchemaSimpleType xsst=new XmlSchemaSimpleType(first);
  xsst.setId("String_Node_Str");
  xsst.setName("String_Node_Str");
  xsst.setSourceURI("String_Node_Str");
  XmlSchema two=new XmlSchema();
  two.setId("String_Node_Str");
  two.setTargetNamespace(nameSpace);
  String nameSpaceTwo="String_Node_Str";
  XmlSchemaComplexType xsc=new XmlSchemaComplexType(two);
  XmlSchemaSequence xmlSchemaSequence=new XmlSchemaSequence();
  xmlSchemaSequence.setId("String_Node_Str");
  XmlSchemaElement xmlSchemaElement=new XmlSchemaElement();
  xmlSchemaElement.setSourceURI(nameSpaceTwo);
  xmlSchemaElement.setQName(new QName(nameSpaceTwo,"String_Node_Str"));
  xmlSchemaElement.setName(name);
  xmlSchemaSequence.getItems().add(xmlSchemaElement);
  xsc.setParticle(xmlSchemaSequence);
  xsc.setId("String_Node_Str");
  xsc.setName("String_Node_Str");
  XmlSchemaComplexContent contentModel=new XmlSchemaComplexContent();
  XmlSchemaComplexContentExtension xmlSchemaContent=new XmlSchemaComplexContentExtension();
  xmlSchemaContent.setId("String_Node_Str");
  xmlSchemaContent.setBaseTypeName(new QName(nameSpace,"String_Node_Str"));
  xmlSchemaContent.setSourceURI(nameSpaceTwo);
  contentModel.setSourceURI(nameSpace);
  contentModel.setContent(xmlSchemaContent);
  xsc.setContentModel(contentModel);
  allXmlSchemaType.add(xsst);
  allXmlSchemaType.add(xsc);
  Method m=cb.getClass().getDeclaredMethod("String_Node_Str",new Class[]{String.class,String.class,ParameterInfo.class,int.class});
  m.setAccessible(true);
  m.invoke(cb,nameSpace,name,parameter,5);
  ParameterInfo parameterInfo=parameter.getParameterInfos().get(0);
  Assert.assertNotNull(parameterInfo);
  Assert.assertEquals(nameSpace,parameterInfo.getNameSpace());
}