Program: 67161
Project: 67161
Buggy source:
/** 
 * Tests class level @XmlJavaTypeAdapter via eclipselink-oxm.xml. Positive test.
 */
public void testXmlJavaTypeAdapterOnClass(){
  Class[] classesToProcess=new Class[]{org.eclipse.persistence.testing.jaxb.externalizedmetadata.xmladapter.classlevel.MyClass.class};
  MySchemaOutputResolver outputResolver=new MySchemaOutputResolver();
  JAXBContext jaxbContext=null;
  try {
    jaxbContext=(JAXBContext)JAXBContextFactory.createContext(classesToProcess,null);
    jaxbContext.generateSchema(outputResolver);
  }
 catch (  JAXBException e) {
    e.printStackTrace();
    fail("String_Node_Str");
  }
  String controlSchema=PATH + "String_Node_Str";
  compareSchemas(outputResolver.schemaFiles.get(EMPTY_NAMESPACE),new File(controlSchema));
  String src=PATH + "String_Node_Str";
  String result=validateAgainstSchema(src,EMPTY_NAMESPACE,outputResolver);
  assertTrue("String_Node_Str" + result,result == null);
  Unmarshaller unmarshaller=jaxbContext.createUnmarshaller();
  Marshaller marshaller=jaxbContext.createMarshaller();
  Object obj;
  try {
    obj=unmarshaller.unmarshal(new StreamSource(new File(src)));
    assertTrue("String_Node_Str",obj.equals(getControlObjectClass()));
    src=tmpdir + "String_Node_Str";
    File outputFile=new File(src);
    marshaller.marshal(obj,outputFile);
    result=validateAgainstSchema(src,EMPTY_NAMESPACE,outputResolver);
    assertTrue("String_Node_Str" + result,result == null);
  }
 catch (  JAXBException e) {
    e.printStackTrace();
    fail("String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * Tests class level @XmlJavaTypeAdapter via eclipselink-oxm.xml. Positive test.
 */
public void testXmlJavaTypeAdapterOnClass(){
  String metadataFile=PATH + "String_Node_Str" + "String_Node_Str";
  InputStream iStream=loader.getResourceAsStream(metadataFile);
  if (iStream == null) {
    fail("String_Node_Str" + metadataFile + "String_Node_Str");
  }
  HashMap<String,Source> metadataSourceMap=new HashMap<String,Source>();
  metadataSourceMap.put(CONTEXT_PATH + "String_Node_Str",new StreamSource(iStream));
  Map<String,Map<String,Source>> properties=new HashMap<String,Map<String,Source>>();
  properties.put(JAXBContextFactory.ECLIPSELINK_OXM_XML_KEY,metadataSourceMap);
  Class[] classesToProcess=new Class[]{org.eclipse.persistence.testing.jaxb.externalizedmetadata.xmladapter.classlevel.MyClass.class};
  MySchemaOutputResolver outputResolver=new MySchemaOutputResolver();
  JAXBContext jaxbContext=null;
  try {
    jaxbContext=(JAXBContext)JAXBContextFactory.createContext(classesToProcess,properties);
    jaxbContext.generateSchema(outputResolver);
  }
 catch (  JAXBException e) {
    e.printStackTrace();
    fail("String_Node_Str");
  }
  String controlSchema=PATH + "String_Node_Str";
  compareSchemas(outputResolver.schemaFiles.get(EMPTY_NAMESPACE),new File(controlSchema));
  String src=PATH + "String_Node_Str";
  String result=validateAgainstSchema(src,EMPTY_NAMESPACE,outputResolver);
  assertTrue("String_Node_Str" + result,result == null);
  Unmarshaller unmarshaller=jaxbContext.createUnmarshaller();
  Marshaller marshaller=jaxbContext.createMarshaller();
  Object obj;
  try {
    obj=unmarshaller.unmarshal(new StreamSource(new File(src)));
    assertTrue("String_Node_Str",obj.equals(getControlObjectClass()));
    src=tmpdir + "String_Node_Str";
    File outputFile=new File(src);
    marshaller.marshal(obj,outputFile);
    result=validateAgainstSchema(src,EMPTY_NAMESPACE,outputResolver);
    assertTrue("String_Node_Str" + result,result == null);
  }
 catch (  JAXBException e) {
    e.printStackTrace();
    fail("String_Node_Str");
  }
}