Program: 67160
Project: 67160
Buggy source:
/** 
 * Tests property level @XmlJavaTypeAdapter via eclipselink-oxm.xml. Positive test.
 */
public void testXmlJavaTypeAdapterOnProperty(){
  Class[] classesToProcess=new Class[]{org.eclipse.persistence.testing.jaxb.externalizedmetadata.xmladapter.property.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(getControlObjectProperty()));
    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 property level @XmlJavaTypeAdapter via eclipselink-oxm.xml. Positive test.
 */
public void testXmlJavaTypeAdapterOnProperty(){
  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.property.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(getControlObjectProperty()));
    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");
  }
}