Program: 64727
Project: 64727
Buggy source:
/** 
 * Test exception handling:  in this case the method name that has been  set is invalid (wrong number or type of params. An exception should  be thrown. Negative test.
 */
public void testInvalidMethod(){
  InputStream inputStream=ClassLoader.getSystemResourceAsStream(METADATA_FILE_BAD_METHOD);
  HashMap<String,Source> metadataSourceMap=new HashMap<String,Source>();
  metadataSourceMap.put("String_Node_Str",new StreamSource(inputStream));
  Map<String,Map<String,Source>> properties=new HashMap<String,Map<String,Source>>();
  properties.put(JAXBContextFactory.ECLIPSELINK_OXM_XML_KEY,metadataSourceMap);
  int exceptionCount=0;
  try {
    JAXBContext jaxbContext=(JAXBContext)JAXBContextFactory.createContext(new Class[]{Employee.class},properties,Thread.currentThread().getContextClassLoader());
  }
 catch (  JAXBException e) {
    exceptionCount++;
  }
  assertTrue("String_Node_Str",exceptionCount > 0);
  exceptionCount--;
  try {
    Map<String,XmlBindings> bindings=JAXBContextFactory.getXmlBindingsFromProperties(properties,Thread.currentThread().getContextClassLoader());
    JavaModelInputImpl jModelInput=new JavaModelInputImpl(new Class[]{Employee.class},new JavaModelImpl(new JaxbClassLoader(Thread.currentThread().getContextClassLoader(),new Class[]{Employee.class})));
    Generator generator=new Generator(jModelInput,bindings,Thread.currentThread().getContextClassLoader(),"String_Node_Str");
    generator.generateSchema();
  }
 catch (  Exception e) {
    exceptionCount++;
  }
  assertTrue("String_Node_Str",exceptionCount > 0);
}

Fixed version (ground truth):
/** 
 * Test exception handling:  in this case the method name that has been  set is invalid (wrong number or type of params. An exception should  be thrown. Negative test.
 */
public void testInvalidMethod(){
  InputStream inputStream=ClassLoader.getSystemResourceAsStream(METADATA_FILE_BAD_METHOD);
  HashMap<String,Source> metadataSourceMap=new HashMap<String,Source>();
  metadataSourceMap.put("String_Node_Str",new StreamSource(inputStream));
  Map<String,Map<String,Source>> properties=new HashMap<String,Map<String,Source>>();
  properties.put(JAXBContextFactory.ECLIPSELINK_OXM_XML_KEY,metadataSourceMap);
  int exceptionCount=0;
  try {
    JAXBContext jaxbContext=(JAXBContext)JAXBContextFactory.createContext(new Class[]{Employee.class},properties,Thread.currentThread().getContextClassLoader());
  }
 catch (  JAXBException e) {
    exceptionCount++;
  }
  assertTrue("String_Node_Str",exceptionCount > 0);
  exceptionCount--;
  try {
    Map<String,XmlBindings> bindings=JAXBContextFactory.getXmlBindingsFromProperties(properties,Thread.currentThread().getContextClassLoader());
    JavaModelInputImpl jModelInput=new JavaModelInputImpl(new Class[]{Employee.class},new JavaModelImpl(new JaxbClassLoader(Thread.currentThread().getContextClassLoader(),new Class[]{Employee.class})));
    Generator generator=new Generator(jModelInput,bindings,Thread.currentThread().getContextClassLoader(),"String_Node_Str",false);
    generator.generateSchema();
  }
 catch (  Exception e) {
    exceptionCount++;
  }
  assertTrue("String_Node_Str",exceptionCount > 0);
}