Program: 29425
Project: 29425
Buggy source:
public static void testServiceTags() throws RegistrationException {
  Properties data=getServiceTagProps();
  ServiceTag st=new ServiceTag(data);
  RepositoryManager rm=new RepositoryManager(getRepositoryFile());
  System.out.println("String_Node_Str");
  rm.write(System.out);
  try {
    rm.add(st);
    System.out.println("String_Node_Str");
    List<ServiceTag> list=rm.getServiceTags();
    System.out.println("String_Node_Str");
    for (    ServiceTag x : list) {
      System.out.println(x.toString());
    }
    try {
      rm.add(st);
    }
 catch (    RegistrationException e) {
      System.err.println("String_Node_Str");
    }
    System.out.println("String_Node_Str");
    rm.write(System.out);
    System.out.println("String_Node_Str" + st.getSvcTag().getInstanceURN());
    rm.remove(st);
    System.out.println("String_Node_Str");
    rm.write(System.out);
    try {
      rm.remove(st);
      System.out.println("String_Node_Str");
    }
 catch (    RegistrationException e) {
      System.err.println("String_Node_Str");
    }
    rm.add(st);
    System.out.println("String_Node_Str");
    rm.setRegistrationStatus(st,ServiceTag.RegistrationStatus.NOT_REGISTERED);
    rm.write(System.out);
    System.out.println("String_Node_Str");
    rm.setRegistrationStatus(st,ServiceTag.RegistrationStatus.NOT_REGISTERED);
    rm.write(System.out);
    System.out.println("String_Node_Str");
    rm.setStatus(st,ServiceTag.Status.TRANSFERRED);
    rm.write(System.out);
    System.out.println("String_Node_Str");
    rm.setStatus(st,ServiceTag.Status.NOT_TRANSFERRED);
    rm.write(System.out);
    rm=new RepositoryManager(getRepositoryFile());
    System.out.println("String_Node_Str");
    rm.setRegistrationReminder(RegistrationService.RegistrationReminder.REMIND_LATER);
    rm.write(System.out);
    System.out.println(rm.getRegistrationStatus());
    testTransferManager(getRepositoryFile());
  }
 catch (  Exception ex) {
    ex.printStackTrace();
  }
}

Fixed version (ground truth):
public static void testServiceTags() throws RegistrationException {
  Properties data=getServiceTagProps();
  ServiceTag st=new ServiceTag(data);
  RepositoryManager rm=new RepositoryManager(getRepositoryFile());
  System.out.println("String_Node_Str");
  rm.write(System.out);
  try {
    rm.add(st);
    System.out.println("String_Node_Str");
    List<ServiceTag> list=rm.getServiceTags();
    System.out.println("String_Node_Str");
    for (    ServiceTag x : list) {
      System.out.println(x.toString());
    }
    try {
      rm.add(st);
    }
 catch (    RegistrationException e) {
      System.err.println("String_Node_Str");
    }
    System.out.println("String_Node_Str");
    rm.write(System.out);
    System.out.println("String_Node_Str" + st.getSvcTag().getInstanceURN());
    rm.remove(st);
    System.out.println("String_Node_Str");
    rm.write(System.out);
    try {
      rm.remove(st);
      System.out.println("String_Node_Str");
    }
 catch (    RegistrationException e) {
      System.err.println("String_Node_Str");
    }
    rm.add(st);
    System.out.println("String_Node_Str");
    rm.setRegistrationStatus(st,ServiceTag.RegistrationStatus.NOT_REGISTERED);
    rm.write(System.out);
    System.out.println("String_Node_Str");
    rm.setRegistrationStatus(st,ServiceTag.RegistrationStatus.NOT_REGISTERED);
    rm.write(System.out);
    System.out.println("String_Node_Str");
    rm.setStatus(st,ServiceTag.Status.TRANSFERRED);
    rm.write(System.out);
    System.out.println("String_Node_Str");
    rm.setStatus(st,ServiceTag.Status.NOT_TRANSFERRED);
    rm.write(System.out);
    rm=new RepositoryManager(getRepositoryFile());
    System.out.println("String_Node_Str");
    rm.setRegistrationReminder(RegistrationService.RegistrationReminder.REMIND_LATER);
    rm.write(System.out);
    System.out.println(rm.getRegistrationStatus());
    testTransferManager(getRepositoryFile());
    testRMRegistration();
  }
 catch (  Exception ex) {
    ex.printStackTrace();
  }
}