Program: 50746
Project: 50746
Buggy source:
@Test @OperateOnDeployment("String_Node_Str") public void testSLAReport(){
  try {
    java.util.Calendar startDateTime=java.util.Calendar.getInstance();
    Thread.sleep(2000);
    SOAPConnectionFactory factory=SOAPConnectionFactory.newInstance();
    SOAPConnection con=factory.createConnection();
    java.net.URL url=new java.net.URL(ORDER_SERVICE_URL);
    String mesg="String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str";
    java.io.InputStream is=new java.io.ByteArrayInputStream(mesg.getBytes());
    SOAPMessage request=MessageFactory.newInstance().createMessage(null,is);
    is.close();
    SOAPMessage response=con.call(request,url);
    java.io.ByteArrayOutputStream baos=new java.io.ByteArrayOutputStream();
    response.writeTo(baos);
    baos.close();
    Thread.sleep(4000);
    java.util.Calendar endDateTime=java.util.Calendar.getInstance();
    java.util.Map<String,String> params=new java.util.HashMap<String,String>();
    params.put("String_Node_Str","String_Node_Str");
    params.put("String_Node_Str","String_Node_Str");
    params.put("String_Node_Str","String_Node_Str");
    params.put("String_Node_Str","String_Node_Str" + startDateTime.get(java.util.Calendar.DAY_OF_MONTH));
    params.put("String_Node_Str","String_Node_Str" + (startDateTime.get(java.util.Calendar.MONTH) + 1));
    params.put("String_Node_Str","String_Node_Str" + startDateTime.get(java.util.Calendar.YEAR));
    params.put("String_Node_Str","String_Node_Str" + startDateTime.get(java.util.Calendar.HOUR_OF_DAY));
    params.put("String_Node_Str","String_Node_Str" + startDateTime.get(java.util.Calendar.MINUTE));
    params.put("String_Node_Str","String_Node_Str" + startDateTime.get(java.util.Calendar.SECOND));
    params.put("String_Node_Str","String_Node_Str" + endDateTime.get(java.util.Calendar.DAY_OF_MONTH));
    params.put("String_Node_Str","String_Node_Str" + (endDateTime.get(java.util.Calendar.MONTH) + 1));
    params.put("String_Node_Str","String_Node_Str" + endDateTime.get(java.util.Calendar.YEAR));
    params.put("String_Node_Str","String_Node_Str" + endDateTime.get(java.util.Calendar.HOUR_OF_DAY));
    params.put("String_Node_Str","String_Node_Str" + endDateTime.get(java.util.Calendar.MINUTE));
    params.put("String_Node_Str","String_Node_Str" + endDateTime.get(java.util.Calendar.SECOND));
    String reportjson=getReport("String_Node_Str",params);
    if (reportjson == null) {
      fail("String_Node_Str");
    }
    System.out.println("String_Node_Str" + reportjson);
    Report report=ReportsUtil.deserializeReport(reportjson.getBytes());
    if (report == null) {
      fail("String_Node_Str");
    }
    if (report.getSections().size() != 1) {
      fail("String_Node_Str" + report.getSections().size());
    }
    Tabular section=(Tabular)report.getSections().get(0);
    if (section.getRows().size() != 1) {
      fail("String_Node_Str" + section.getRows().size());
    }
    if (section.getSummary() == null) {
      fail("String_Node_Str");
    }
    if ((section.getSummary().getValues().get(1) instanceof Number) == false) {
      fail("String_Node_Str");
    }
    if (((Number)section.getSummary().getValues().get(1)).intValue() != 450) {
      fail("String_Node_Str" + section.getSummary().getValues().get(1));
    }
    if (!section.getSummary().getProperties().containsKey("String_Node_Str")) {
      fail("String_Node_Str");
    }
    if (((Number)section.getSummary().getProperties().get("String_Node_Str")).doubleValue() != 6.43) {
      fail("String_Node_Str" + section.getSummary().getProperties().get("String_Node_Str"));
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
    fail("String_Node_Str" + e);
  }
}

Fixed version (ground truth):
@Test @OperateOnDeployment("String_Node_Str") public void testSLAReport(){
  try {
    java.util.Calendar startDateTime=java.util.Calendar.getInstance();
    Thread.sleep(2000);
    SOAPConnectionFactory factory=SOAPConnectionFactory.newInstance();
    SOAPConnection con=factory.createConnection();
    java.net.URL url=new java.net.URL(ORDER_SERVICE_URL);
    String mesg="String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str";
    java.io.InputStream is=new java.io.ByteArrayInputStream(mesg.getBytes());
    SOAPMessage request=MessageFactory.newInstance().createMessage(null,is);
    is.close();
    SOAPMessage response=con.call(request,url);
    java.io.ByteArrayOutputStream baos=new java.io.ByteArrayOutputStream();
    response.writeTo(baos);
    baos.close();
    Thread.sleep(4000);
    java.util.Calendar endDateTime=java.util.Calendar.getInstance();
    boolean f_enableCalendar=false;
    if (startDateTime.get(java.util.Calendar.DAY_OF_WEEK) >= java.util.Calendar.MONDAY && startDateTime.get(java.util.Calendar.DAY_OF_WEEK) >= java.util.Calendar.FRIDAY && startDateTime.get(java.util.Calendar.HOUR_OF_DAY) >= 9 && startDateTime.get(java.util.Calendar.HOUR_OF_DAY) <= 5) {
      f_enableCalendar=true;
    }
    java.util.Map<String,String> params=new java.util.HashMap<String,String>();
    params.put("String_Node_Str","String_Node_Str");
    params.put("String_Node_Str","String_Node_Str");
    if (f_enableCalendar) {
      params.put("String_Node_Str","String_Node_Str");
    }
    params.put("String_Node_Str","String_Node_Str" + startDateTime.get(java.util.Calendar.DAY_OF_MONTH));
    params.put("String_Node_Str","String_Node_Str" + (startDateTime.get(java.util.Calendar.MONTH) + 1));
    params.put("String_Node_Str","String_Node_Str" + startDateTime.get(java.util.Calendar.YEAR));
    params.put("String_Node_Str","String_Node_Str" + startDateTime.get(java.util.Calendar.HOUR_OF_DAY));
    params.put("String_Node_Str","String_Node_Str" + startDateTime.get(java.util.Calendar.MINUTE));
    params.put("String_Node_Str","String_Node_Str" + startDateTime.get(java.util.Calendar.SECOND));
    params.put("String_Node_Str","String_Node_Str" + endDateTime.get(java.util.Calendar.DAY_OF_MONTH));
    params.put("String_Node_Str","String_Node_Str" + (endDateTime.get(java.util.Calendar.MONTH) + 1));
    params.put("String_Node_Str","String_Node_Str" + endDateTime.get(java.util.Calendar.YEAR));
    params.put("String_Node_Str","String_Node_Str" + endDateTime.get(java.util.Calendar.HOUR_OF_DAY));
    params.put("String_Node_Str","String_Node_Str" + endDateTime.get(java.util.Calendar.MINUTE));
    params.put("String_Node_Str","String_Node_Str" + endDateTime.get(java.util.Calendar.SECOND));
    String reportjson=getReport("String_Node_Str",params);
    if (reportjson == null) {
      fail("String_Node_Str");
    }
    System.out.println("String_Node_Str" + reportjson);
    Report report=ReportsUtil.deserializeReport(reportjson.getBytes());
    if (report == null) {
      fail("String_Node_Str");
    }
    if (report.getSections().size() != 1) {
      fail("String_Node_Str" + report.getSections().size());
    }
    Tabular section=(Tabular)report.getSections().get(0);
    if (section.getRows().size() == 0) {
      fail("String_Node_Str" + section.getRows().size());
    }
    if (section.getSummary() == null) {
      fail("String_Node_Str");
    }
    if ((section.getSummary().getValues().get(1) instanceof Number) == false) {
      fail("String_Node_Str");
    }
    if (((Number)section.getSummary().getValues().get(1)).intValue() == 0) {
      fail("String_Node_Str" + section.getSummary().getValues().get(1));
    }
    if (f_enableCalendar) {
      if (!section.getSummary().getProperties().containsKey("String_Node_Str")) {
        fail("String_Node_Str");
      }
      if (((Number)section.getSummary().getProperties().get("String_Node_Str")).doubleValue() > 0) {
        fail("String_Node_Str" + section.getSummary().getProperties().get("String_Node_Str"));
      }
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
    fail("String_Node_Str" + e);
  }
}