Program: 67173
Project: 67173
Buggy source:
/** 
 * Tests package-info override via eclipselink-oxm.xml.   The value in package-info.java for prefix 'nsx' is "http://www.example.com/xsds/fake", but  due to the override in the oxm.xml file it should be "http://www.example.com/xsds/real". The value in package-info.java for target namespace is  "http://www.eclipse.org/eclipselink/xsds/persistence/oxm/junk", but due to the override in the oxm.xml file it should be "http://www.eclipse.org/eclipselink/xsds/persistence/oxm" Also, elementForm and attributeForm are both QUALIFIED in package-info, but set to  UNQUALIFIED in the oxm.xml file.  Positive test.
 */
public void testXmlSchemaOverride(){
  if (shouldGenerateSchema) {
    outputResolver=generateSchema(CONTEXT_PATH,1);
    shouldGenerateSchema=false;
  }
  File schemaFile=outputResolver.schemaFiles.get("String_Node_Str");
  Project proj=new SchemaModelProject();
  XMLContext context=new XMLContext(proj);
  XMLUnmarshaller unmarshaller=context.createUnmarshaller();
  try {
    Schema schema=(Schema)unmarshaller.unmarshal(schemaFile,Schema.class);
    NamespaceResolver nsr=schema.getNamespaceResolver();
    String uri=nsr.resolveNamespacePrefix("String_Node_Str");
    assertTrue("String_Node_Str" + NSX_OVERRIDE_VALUE + "String_Node_Str"+ PREFIX+ "String_Node_Str",uri != null);
    assertTrue("String_Node_Str" + NSX_OVERRIDE_VALUE + "String_Node_Str"+ PREFIX+ "String_Node_Str"+ uri+ "String_Node_Str",uri.equals(NSX_OVERRIDE_VALUE));
    boolean elementQualified=schema.isElementFormDefault();
    assertTrue("String_Node_Str" + FORM_DEFAULT_VALUE + "String_Node_Str"+ elementQualified+ "String_Node_Str",elementQualified == FORM_DEFAULT_VALUE);
    boolean attributeQualified=schema.isAttributeFormDefault();
    assertTrue("String_Node_Str" + FORM_DEFAULT_VALUE + "String_Node_Str"+ attributeQualified+ "String_Node_Str",attributeQualified == FORM_DEFAULT_VALUE);
    String targetNamespace=schema.getTargetNamespace();
    assertTrue("String_Node_Str" + NAMESPACE + "String_Node_Str",targetNamespace != null);
    assertTrue("String_Node_Str" + NAMESPACE + "String_Node_Str"+ targetNamespace+ "String_Node_Str",targetNamespace.equals(NAMESPACE));
  }
 catch (  Exception ex) {
    ex.printStackTrace();
    fail(ex.getMessage());
  }
}

Fixed version (ground truth):
/** 
 * Tests package-info override via eclipselink-oxm.xml.   The value in package-info.java for prefix 'nsx' is "http://www.example.com/xsds/fake", but  due to the override in the oxm.xml file it should be "http://www.example.com/xsds/real". The value in package-info.java for target namespace is  "http://www.eclipse.org/eclipselink/xsds/persistence/oxm/junk", but due to the override in the oxm.xml file it should be "http://www.eclipse.org/eclipselink/xsds/persistence/oxm" Also, elementForm and attributeForm are both QUALIFIED in package-info, but set to  UNQUALIFIED in the oxm.xml file.  Positive test.
 */
public void testXmlSchemaOverride(){
  if (shouldGenerateSchema) {
    outputResolver=generateSchema(CONTEXT_PATH,PATH,1);
    shouldGenerateSchema=false;
  }
  File schemaFile=outputResolver.schemaFiles.get("String_Node_Str");
  Project proj=new SchemaModelProject();
  XMLContext context=new XMLContext(proj);
  XMLUnmarshaller unmarshaller=context.createUnmarshaller();
  try {
    Schema schema=(Schema)unmarshaller.unmarshal(schemaFile,Schema.class);
    NamespaceResolver nsr=schema.getNamespaceResolver();
    String uri=nsr.resolveNamespacePrefix("String_Node_Str");
    assertTrue("String_Node_Str" + NSX_OVERRIDE_VALUE + "String_Node_Str"+ PREFIX+ "String_Node_Str",uri != null);
    assertTrue("String_Node_Str" + NSX_OVERRIDE_VALUE + "String_Node_Str"+ PREFIX+ "String_Node_Str"+ uri+ "String_Node_Str",uri.equals(NSX_OVERRIDE_VALUE));
    boolean elementQualified=schema.isElementFormDefault();
    assertTrue("String_Node_Str" + FORM_DEFAULT_VALUE + "String_Node_Str"+ elementQualified+ "String_Node_Str",elementQualified == FORM_DEFAULT_VALUE);
    boolean attributeQualified=schema.isAttributeFormDefault();
    assertTrue("String_Node_Str" + FORM_DEFAULT_VALUE + "String_Node_Str"+ attributeQualified+ "String_Node_Str",attributeQualified == FORM_DEFAULT_VALUE);
    String targetNamespace=schema.getTargetNamespace();
    assertTrue("String_Node_Str" + NAMESPACE + "String_Node_Str",targetNamespace != null);
    assertTrue("String_Node_Str" + NAMESPACE + "String_Node_Str"+ targetNamespace+ "String_Node_Str",targetNamespace.equals(NAMESPACE));
  }
 catch (  Exception ex) {
    ex.printStackTrace();
    fail(ex.getMessage());
  }
}