Program: 67162
Project: 67162
Buggy source:
/** 
 * Tests package level @XmlJavaTypeAdapter via eclipselink-oxm.xml. Positive test.
 */
public void testXmlJavaTypeAdapterOnPackage(){
  Class[] classesToProcess=new Class[]{org.eclipse.persistence.testing.jaxb.externalizedmetadata.xmladapter.packagelevel.MyClass.class,SomeLameClass.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(getControlObjectPackage()));
    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 package level @XmlJavaTypeAdapter via eclipselink-oxm.xml. Positive test.
 */
public void testXmlJavaTypeAdapterOnPackage(){
  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.packagelevel.MyClass.class,SomeLameClass.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(getControlObjectPackage()));
    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");
  }
}