Program: 11971
Project: 11971
Buggy source:
protected Configuration loadConfig(){
  Configuration config=new Configuration();
  config.language=language;
  config.outputFileEncoding=outputFileEncoding;
  config.directoryPathOfProductSourceCode=directoryPathOfProductSourceCode;
  config.directoryPathOfTestSourceCode=directoryPathOfTestSourceCode;
  try {
    config.junitVersion=JUnitVersion.valueOf(junitVersion);
  }
 catch (  Exception e) {
    config.junitVersion=JUnitVersion.version4;
  }
  config.testCaseClassNameToExtend=testCaseClassNameToExtend;
  config.isTemplateImplementationRequired=isTemplateImplementationRequired;
  config.target.isAccessorExcluded=target_isAccessorExcluded;
  config.target.isExceptionPatternRequired=target_isExceptionPatternRequired;
  config.target.isPackageLocalMethodRequired=target_isPackageLocalMethodRequired;
  config.target.isProtectedMethodRequired=target_isProtectedMethodRequired;
  config.target.isPublicMethodRequired=target_isPublicMethodRequired;
  config.target.regexpCsvForExclusion=target_regexpCsvForExclusion;
  config.testMethodName.isArgsRequired=testMethodName_isArgsRequired;
  config.testMethodName.isReturnRequired=testMethodName_isReturnRequired;
  config.testMethodName.basicDelimiter=testMethodName_basicDelimiter;
  config.testMethodName.argsAreaPrefix=testMethodName_argsAreaPrefix;
  config.testMethodName.argsAreaDelimiter=testMethodName_argsAreaDelimiter;
  config.testMethodName.returnAreaPrefix=testMethodName_returnAreaPrefix;
  config.testMethodName.returnAreaDelimiter=testMethodName_returnAreaDelimiter;
  config.testMethodName.exceptionAreaPrefix=testMethodName_exceptionAreaPrefix;
  config.testMethodName.exceptionAreaDelimiter=testMethodName_exceptionAreaDelimiter;
  try {
    config.mockObjectFramework=MockObjectFramework.valueOf(mockObjectFramework);
  }
 catch (  Exception e) {
    config.mockObjectFramework=null;
  }
  try {
    config.testingPatternExplicitComment=TestingPatternExplicitComment.valueOf(testingPatternExplicitComment);
  }
 catch (  Exception e) {
    config.testingPatternExplicitComment=null;
  }
  config.isExtensionEnabled=isExtensionEnabled;
  config.extensionConfigXML=extensionConfigXML;
  return config;
}

Fixed version (ground truth):
protected Configuration loadConfig(){
  Configuration config=new Configuration();
  config.language=language;
  config.outputFileEncoding=outputFileEncoding;
  config.directoryPathOfProductSourceCode=directoryPathOfProductSourceCode;
  config.directoryPathOfTestSourceCode=directoryPathOfTestSourceCode;
  try {
    config.junitVersion=JUnitVersion.valueOf(junitVersion);
  }
 catch (  Exception e) {
    config.junitVersion=JUnitVersion.version4;
  }
  config.testCaseClassNameToExtend=testCaseClassNameToExtend;
  config.isTemplateImplementationRequired=isTemplateImplementationRequired;
  config.target.isAccessorExcluded=target_isAccessorExcluded;
  config.target.isExceptionPatternRequired=target_isExceptionPatternRequired;
  config.target.isPackageLocalMethodRequired=target_isPackageLocalMethodRequired;
  config.target.isProtectedMethodRequired=target_isProtectedMethodRequired;
  config.target.isPublicMethodRequired=target_isPublicMethodRequired;
  config.target.regexpCsvForExclusion=target_regexpCsvForExclusion;
  config.testMethodName.isArgsRequired=testMethodName_isArgsRequired;
  config.testMethodName.isReturnRequired=testMethodName_isReturnRequired;
  config.testMethodName.basicDelimiter=testMethodName_basicDelimiter;
  config.testMethodName.argsAreaPrefix=testMethodName_argsAreaPrefix;
  config.testMethodName.argsAreaDelimiter=testMethodName_argsAreaDelimiter;
  config.testMethodName.returnAreaPrefix=testMethodName_returnAreaPrefix;
  config.testMethodName.returnAreaDelimiter=testMethodName_returnAreaDelimiter;
  config.testMethodName.exceptionAreaPrefix=testMethodName_exceptionAreaPrefix;
  config.testMethodName.exceptionAreaDelimiter=testMethodName_exceptionAreaDelimiter;
  try {
    config.mockObjectFramework=MockObjectFramework.valueOf(mockObjectFramework);
  }
 catch (  Exception e) {
    config.mockObjectFramework=null;
  }
  try {
    config.testingPatternExplicitComment=TestingPatternExplicitComment.valueOf(testingPatternExplicitComment);
  }
 catch (  Exception e) {
    config.testingPatternExplicitComment=TestingPatternExplicitComment.None;
  }
  config.isExtensionEnabled=isExtensionEnabled;
  config.extensionConfigXML=extensionConfigXML;
  return config;
}