Program: 15608
Project: 15608
Buggy source:
/** 
 * @param args
 */
public static void main(String[] args){
  generateAuthorizationData();
  if (true)   return;
  LSMOAuthHttpManager oM=new LSMOAuthHttpManager(OAuthGraphURL);
  LSMTicketGrantingTicketImpl realTicket=oM.getTicketGranting("String_Node_Str");
  if (realTicket != null) {
    System.out.println("String_Node_Str" + realTicket.getCreationTime() + "String_Node_Str"+ new Date(realTicket.getCreationTime()));
    System.out.println("String_Node_Str" + realTicket.isExpired());
    System.out.println("String_Node_Str" + realTicket.isExpiredInternal());
    System.out.println("String_Node_Str" + realTicket.getExpirationPolicy().getClass());
    System.out.println("String_Node_Str" + realTicket.getAuthentication().getPrincipal().getId());
  }
  LSMRegisteredServiceImpl service=oM.getRegisteredService((long)1);
  System.out.println(service.getUsernameAttribute() == null);
  System.out.println("String_Node_Str" + service.isAnonymousAccess());
  if (true)   return;
  final LSMTicketGrantingTicketImpl tgt=createTicketGrantingTicket();
  final LSMTicketGrantingTicketImpl ticketGranting=oM.getTicketGranting(tgt.getId());
  System.out.println(ticketGranting);
  final LSMTicketGrantingTicketImpl tgt2=createTicketGrantingTicket(tgt);
  final LSMTicketGrantingTicketImpl ticketGranting2=oM.getTicketGranting(tgt2.getId());
  System.out.println(ticketGranting2);
  if (ticketGranting2 != null)   System.out.println(ticketGranting2.getGrantingTicket());
  final LSMServiceTicketImpl serviceTicket=createServiceTicket(tgt);
  LSMServiceTicketImpl serviceTicket2=oM.getServiceTicketImpl(serviceTicket.getId());
  System.out.println(serviceTicket2);
  final List<LSMTicketGrantingTicketImpl> allTkts=oM.getAllTicketGrantingTickets();
  System.out.println(allTkts.size());
  if (!allTkts.isEmpty())   System.out.println(allTkts.get(0));
  final List<LSMServiceTicketImpl> allTktsOf=oM.getAllServiceTicketsOfTicketGrantingTicket(tgt.getId());
  System.out.println("String_Node_Str" + allTktsOf.size());
  if (!allTktsOf.isEmpty())   System.out.println(allTktsOf.get(0));
  final List<LSMTicketGrantingTicketImpl> allGrantingTktsOf=oM.getAllTicketsOfTicketGrantingTicket(tgt.getId());
  System.out.println("String_Node_Str" + allGrantingTktsOf.size());
  if (!allGrantingTktsOf.isEmpty())   System.out.println(allGrantingTktsOf.get(0));
  final List<LSMServiceTicketImpl> allServiceTkts=oM.getAllServiceTickets();
  System.out.println("String_Node_Str" + allServiceTkts.size());
  if (!allServiceTkts.isEmpty())   System.out.println(allServiceTkts.get(0));
  final User user=oM.getUserByUsername("String_Node_Str");
  if (user != null) {
    System.out.println(user.getUsername());
    System.out.println(user.getRoles().size());
  }
 else   System.out.println("String_Node_Str");
  final List<RegisteredService> allRegisteredServices=oM.getAllRegisteredServices();
  System.out.println("String_Node_Str" + allRegisteredServices.size());
  if (!allRegisteredServices.isEmpty())   System.out.println(allRegisteredServices.get(0));
  final int ticketGrantingTicketsCount=oM.getTicketGrantingTicketsCount();
  System.out.println("String_Node_Str" + ticketGrantingTicketsCount);
  final int serviceTicketsCount=oM.getServiceTicketsCount();
  System.out.println("String_Node_Str" + serviceTicketsCount);
}

Fixed version (ground truth):
/** 
 * @param args
 */
public static void main(String[] args){
  LSMOAuthHttpManager oM=new LSMOAuthHttpManager(OAuthGraphURL);
  if (true)   return;
  LSMTicketGrantingTicketImpl realTicket=oM.getTicketGranting("String_Node_Str");
  if (realTicket != null) {
    System.out.println("String_Node_Str" + realTicket.getCreationTime() + "String_Node_Str"+ new Date(realTicket.getCreationTime()));
    System.out.println("String_Node_Str" + realTicket.isExpired());
    System.out.println("String_Node_Str" + realTicket.isExpiredInternal());
    System.out.println("String_Node_Str" + realTicket.getExpirationPolicy().getClass());
    System.out.println("String_Node_Str" + realTicket.getAuthentication().getPrincipal().getId());
  }
  LSMRegisteredServiceImpl service=oM.getRegisteredService((long)1);
  System.out.println(service.getUsernameAttribute() == null);
  System.out.println("String_Node_Str" + service.isAnonymousAccess());
  if (true)   return;
  final LSMTicketGrantingTicketImpl tgt=createTicketGrantingTicket();
  final LSMTicketGrantingTicketImpl ticketGranting=oM.getTicketGranting(tgt.getId());
  System.out.println(ticketGranting);
  final LSMTicketGrantingTicketImpl tgt2=createTicketGrantingTicket(tgt);
  final LSMTicketGrantingTicketImpl ticketGranting2=oM.getTicketGranting(tgt2.getId());
  System.out.println(ticketGranting2);
  if (ticketGranting2 != null)   System.out.println(ticketGranting2.getGrantingTicket());
  final LSMServiceTicketImpl serviceTicket=createServiceTicket(tgt);
  LSMServiceTicketImpl serviceTicket2=oM.getServiceTicketImpl(serviceTicket.getId());
  System.out.println(serviceTicket2);
  final List<LSMTicketGrantingTicketImpl> allTkts=oM.getAllTicketGrantingTickets();
  System.out.println(allTkts.size());
  if (!allTkts.isEmpty())   System.out.println(allTkts.get(0));
  final List<LSMServiceTicketImpl> allTktsOf=oM.getAllServiceTicketsOfTicketGrantingTicket(tgt.getId());
  System.out.println("String_Node_Str" + allTktsOf.size());
  if (!allTktsOf.isEmpty())   System.out.println(allTktsOf.get(0));
  final List<LSMTicketGrantingTicketImpl> allGrantingTktsOf=oM.getAllTicketsOfTicketGrantingTicket(tgt.getId());
  System.out.println("String_Node_Str" + allGrantingTktsOf.size());
  if (!allGrantingTktsOf.isEmpty())   System.out.println(allGrantingTktsOf.get(0));
  final List<LSMServiceTicketImpl> allServiceTkts=oM.getAllServiceTickets();
  System.out.println("String_Node_Str" + allServiceTkts.size());
  if (!allServiceTkts.isEmpty())   System.out.println(allServiceTkts.get(0));
  final User user=oM.getUserByUsername("String_Node_Str");
  if (user != null) {
    System.out.println(user.getUsername());
    System.out.println(user.getRoles().size());
  }
 else   System.out.println("String_Node_Str");
  final List<RegisteredService> allRegisteredServices=oM.getAllRegisteredServices();
  System.out.println("String_Node_Str" + allRegisteredServices.size());
  if (!allRegisteredServices.isEmpty())   System.out.println(allRegisteredServices.get(0));
  final int ticketGrantingTicketsCount=oM.getTicketGrantingTicketsCount();
  System.out.println("String_Node_Str" + ticketGrantingTicketsCount);
  final int serviceTicketsCount=oM.getServiceTicketsCount();
  System.out.println("String_Node_Str" + serviceTicketsCount);
}