Program: 20109
Project: 20109
Buggy source:
/** 
 * Test the updateSlaOlaIndicators REST operation
 */
@Test @Ignore public void updateSlaOlaIndicatorsTest(){
  logTestName(logger);
  Client client=createAuthenticatedHTTPClient();
  WebResource discoveryRequest=client.resource(endpointStateService.getRootURL()).path("String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Test the updateSlaOlaIndicators REST operation
 */
@Test public void updateSlaOlaIndicatorsTest(){
  logTestName(logger);
  Client client=createAuthenticatedHTTPClient();
  WebResource discoveryRequest=client.resource(endpointStateService.getRootURL()).path("String_Node_Str").queryParam("String_Node_Str","String_Node_Str").queryParam("String_Node_Str","String_Node_Str");
  SlaOrOlaIndicators slaOrOlaIndicators=discoveryRequest.get(SlaOrOlaIndicators.class);
  Assert.assertNotNull(slaOrOlaIndicators);
  Assert.assertEquals(1,slaOrOlaIndicators.getSlaOrOlaIndicatorList().size());
  SlaOrOlaIndicator indicator=slaOrOlaIndicators.getSlaOrOlaIndicatorList().get(0);
  Assert.assertEquals("String_Node_Str",indicator.getEndpointId());
  Assert.assertEquals("String_Node_Str",indicator.getSlaOrOlaName());
  Assert.assertEquals("String_Node_Str",indicator.getServiceLevelHealth().toString());
  Assert.assertEquals(false,indicator.isServiceLevelViolation());
  discoveryRequest=client.resource(endpointStateService.getRootURL()).path("String_Node_Str");
  SlaOrOlaIndicators slaOrOlaIndicatorsUpdate=new SlaOrOlaIndicators();
  SlaOrOlaIndicator indicatorUpdate=new SlaOrOlaIndicator();
  indicatorUpdate.setEndpointId(ENDPOINT_ID);
  indicatorUpdate.setSlaOrOlaName(INDICATOR_NAME);
  indicatorUpdate.setServiceLevelViolation(true);
  indicatorUpdate.setServiceLevelHealth(ServiceLevelHealth.bronze);
  Calendar calendar=new GregorianCalendar();
  calendar.set(2012,12,13,17,17,45);
  indicatorUpdate.setTimestamp(calendar.getTime());
  slaOrOlaIndicatorsUpdate.getSlaOrOlaIndicatorList().add(indicatorUpdate);
  discoveryRequest.post(slaOrOlaIndicatorsUpdate);
  discoveryRequest=client.resource(endpointStateService.getRootURL()).path("String_Node_Str").queryParam("String_Node_Str","String_Node_Str").queryParam("String_Node_Str","String_Node_Str");
  slaOrOlaIndicators=discoveryRequest.get(SlaOrOlaIndicators.class);
  Assert.assertNotNull(slaOrOlaIndicators);
  Assert.assertEquals(1,slaOrOlaIndicators.getSlaOrOlaIndicatorList().size());
  indicator=slaOrOlaIndicators.getSlaOrOlaIndicatorList().get(0);
  Assert.assertEquals("String_Node_Str",indicator.getEndpointId());
  Assert.assertEquals("String_Node_Str",indicator.getSlaOrOlaName());
  Assert.assertEquals("String_Node_Str",indicator.getServiceLevelHealth().toString());
  Assert.assertEquals(true,indicator.isServiceLevelViolation());
  discoveryRequest=client.resource(endpointStateService.getRootURL()).path("String_Node_Str");
  SlaOrOlaIndicators slaOrOlaIndicatorsCreate=new SlaOrOlaIndicators();
  SlaOrOlaIndicator indicatorCreate=new SlaOrOlaIndicator();
  indicatorCreate.setEndpointId("String_Node_Str");
  indicatorCreate.setSlaOrOlaName("String_Node_Str");
  indicatorCreate.setServiceLevelViolation(true);
  indicatorCreate.setServiceLevelHealth(ServiceLevelHealth.silver);
  calendar=new GregorianCalendar();
  calendar.set(2012,10,10,23,47,13);
  indicatorCreate.setTimestamp(calendar.getTime());
  slaOrOlaIndicatorsCreate.getSlaOrOlaIndicatorList().add(indicatorCreate);
  discoveryRequest.post(slaOrOlaIndicatorsCreate);
  discoveryRequest=client.resource(endpointStateService.getRootURL()).path("String_Node_Str");
  slaOrOlaIndicators=discoveryRequest.get(SlaOrOlaIndicators.class);
  Assert.assertNotNull(slaOrOlaIndicators);
  Assert.assertEquals(2,slaOrOlaIndicators.getSlaOrOlaIndicatorList().size());
  discoveryRequest=client.resource(endpointStateService.getRootURL()).path("String_Node_Str").queryParam("String_Node_Str","String_Node_Str").queryParam("String_Node_Str","String_Node_Str");
  slaOrOlaIndicators=discoveryRequest.get(SlaOrOlaIndicators.class);
  indicator=slaOrOlaIndicators.getSlaOrOlaIndicatorList().get(0);
  Assert.assertEquals("String_Node_Str",indicator.getEndpointId());
  Assert.assertEquals("String_Node_Str",indicator.getSlaOrOlaName());
  Assert.assertEquals("String_Node_Str",indicator.getServiceLevelHealth().toString());
  Assert.assertEquals(true,indicator.isServiceLevelViolation());
}