Program: 91043
Project: 91043
Buggy source:
@Test @Sql(scripts="String_Node_Str") public void should_getStatus_correctly(){
  Instant now=Instant.now();
  Timestamp moreThanThreeDaysAgo=Timestamp.from(now.minus(3,DAYS).minus(5,HOURS));
  Timestamp tenMinutesAgo=Timestamp.from(now.minusSeconds(600));
  Timestamp oneMinuteAgo=Timestamp.from(now.minusSeconds(60));
  Timestamp inOneMinute=Timestamp.from(now.plusSeconds(60));
  Timestamp inOneMinutePlusPublishingInterval=Timestamp.from(now.plusSeconds(PricePlan.DEMO.getPublishIntervalSeconds() - 60));
  jdbcTemplate.update("String_Node_Str",tenMinutesAgo,inOneMinute,TRUE,"String_Node_Str");
  jdbcTemplate.update("String_Node_Str",tenMinutesAgo,inOneMinute,FALSE,"String_Node_Str");
  jdbcTemplate.update("String_Node_Str",tenMinutesAgo,oneMinuteAgo,TRUE,"String_Node_Str");
  jdbcTemplate.update("String_Node_Str",tenMinutesAgo,oneMinuteAgo,FALSE,"String_Node_Str");
  jdbcTemplate.update("String_Node_Str",tenMinutesAgo,oneMinuteAgo);
  jdbcTemplate.update("String_Node_Str",moreThanThreeDaysAgo,"String_Node_Str");
  GetStatusResponse1 status=webappService.getStatus();
  assertThat(status.getPricePlan(),is("String_Node_Str"));
  assertThat(status.getCollectionResolutionSeconds(),is(PricePlan.DEMO.getPublishIntervalSeconds()));
  assertThat(status.getMaxNumberOfAgents(),is(PricePlan.DEMO.getMaxNumberOfAgents()));
  assertThat(status.getMaxCollectionPeriodDays(),is(-1));
  assertThat(status.getMaxNumberOfMethods(),is(PricePlan.DEMO.getMaxMethods()));
  assertThat(status.getNumAgents(),is(4));
  assertThat(status.getNumLiveAgents(),is(2));
  assertThat(status.getNumLiveEnabledAgents(),is(1));
  assertThat(status.getAgents().get(0),is(AgentDescriptor1.builder().agentAlive(true).agentLiveAndEnabled(true).agentVersion("String_Node_Str").appName("String_Node_Str").appVersion("String_Node_Str").environment("String_Node_Str").excludePackages("String_Node_Str").id(1L).methodVisibility("String_Node_Str").nextPollExpectedAtMillis(cutMillis(inOneMinute)).nextPublicationExpectedAtMillis(cutMillis(inOneMinutePlusPublishingInterval)).packages("String_Node_Str").pollReceivedAtMillis(cutMillis(tenMinutesAgo)).publishedAtMillis(cutMillis(oneMinuteAgo)).startedAtMillis(cutMillis(moreThanThreeDaysAgo)).tags("String_Node_Str").build()));
  assertThat(status.getNumMethods(),is(10));
  assertThat(status.getCollectedSinceMillis(),is(cutMillis(moreThanThreeDaysAgo)));
  assertThat(status.getCollectedDays(),is(3));
  assertThat(status.getUsers(),hasSize(2));
}

Fixed version (ground truth):
@Test @Sql(scripts="String_Node_Str") public void should_getStatus_correctly(){
  Timestamps timestamps=new Timestamps().invoke();
  GetStatusResponse1 status=webappService.getStatus();
  assertThat(status.getPricePlan(),is("String_Node_Str"));
  assertThat(status.getCollectionResolutionSeconds(),is(PricePlan.DEMO.getPublishIntervalSeconds()));
  assertThat(status.getMaxNumberOfAgents(),is(PricePlan.DEMO.getMaxNumberOfAgents()));
  assertThat(status.getMaxCollectionPeriodDays(),is(-1));
  assertThat(status.getMaxNumberOfMethods(),is(PricePlan.DEMO.getMaxMethods()));
  assertThat(status.getNumAgents(),is(4));
  assertThat(status.getNumLiveAgents(),is(2));
  assertThat(status.getNumLiveEnabledAgents(),is(1));
  assertThat(status.getAgents().get(0),is(AgentDescriptor1.builder().agentAlive(true).agentLiveAndEnabled(true).agentVersion("String_Node_Str").appName("String_Node_Str").appVersion("String_Node_Str").environment("String_Node_Str").excludePackages("String_Node_Str").id(1L).methodVisibility("String_Node_Str").nextPollExpectedAtMillis(cutMillis(timestamps.plusOneMinute)).nextPublicationExpectedAtMillis(cutMillis(Timestamp.from(timestamps.minusTwoMinutes.toInstant().plusSeconds(PricePlan.DEMO.getPublishIntervalSeconds())))).packages("String_Node_Str").pollReceivedAtMillis(cutMillis(timestamps.minusTenMinutes)).publishedAtMillis(cutMillis(timestamps.minusTwoMinutes)).startedAtMillis(cutMillis(timestamps.minusThreeDaysPlus)).tags("String_Node_Str").build()));
  assertThat(status.getNumMethods(),is(10));
  assertThat(status.getCollectedSinceMillis(),is(cutMillis(timestamps.minusThreeDaysPlus)));
  assertThat(status.getCollectedDays(),is(3));
  assertThat(status.getUsers(),hasSize(2));
}