Program: 17453
Project: 17453
Buggy source:
@Test public void testDateRangeQueries() throws Exception {
  logger.debug("String_Node_Str");
  ConnectionManager cm=getConnectionManager();
  CKeyspaceDefinition definition=JsonUtil.objectFromJsonResource(CKeyspaceDefinition.class,this.getClass().getClassLoader(),"String_Node_Str");
  assertNotNull(definition);
  cm.buildKeyspace(definition,true);
  logger.debug("String_Node_Str",definition.getName());
  cm.setDefaultKeyspace(definition);
  ObjectMapper om=cm.getObjectMapper();
  List<Map<String,Object>> values=JsonUtil.rhombusMapFromResource(this.getClass().getClassLoader(),"String_Node_Str");
  for (  Map<String,Object> object : values) {
    Long createdAt=Long.parseLong((String)object.get("String_Node_Str"));
    logger.debug("String_Node_Str",createdAt);
    om.insert("String_Node_Str",TestHelpers.convertStringsToRealTypes(definition.getDefinitions().get("String_Node_Str"),object),createdAt);
  }
  SortedMap<String,Object> indexValues=Maps.newTreeMap();
  indexValues.put("String_Node_Str","String_Node_Str");
  indexValues.put("String_Node_Str","String_Node_Str");
  indexValues.put("String_Node_Str","String_Node_Str");
  Criteria criteria=new Criteria();
  criteria.setIndexKeys(indexValues);
  criteria.setLimit(50L);
  List<Map<String,Object>> results=om.list("String_Node_Str",criteria);
  assertEquals(8,results.size());
  criteria.setStartTimestamp(1367366400000L);
  results=om.list("String_Node_Str",criteria);
  assertEquals(7,results.size());
  criteria.setStartTimestamp(1368489600000L);
  results=om.list("String_Node_Str",criteria);
  assertEquals(5,results.size());
}

Fixed version (ground truth):
@Test public void testDateRangeQueries() throws Exception {
  logger.debug("String_Node_Str");
  ConnectionManager cm=getConnectionManager();
  CKeyspaceDefinition definition=JsonUtil.objectFromJsonResource(CKeyspaceDefinition.class,this.getClass().getClassLoader(),"String_Node_Str");
  assertNotNull(definition);
  cm.buildKeyspace(definition,true);
  logger.debug("String_Node_Str",definition.getName());
  cm.setDefaultKeyspace(definition);
  ObjectMapper om=cm.getObjectMapper();
  List<Map<String,Object>> values=JsonUtil.rhombusMapFromResource(this.getClass().getClassLoader(),"String_Node_Str");
  for (  Map<String,Object> object : values) {
    Long createdAt=(Long)(object.get("String_Node_Str"));
    logger.debug("String_Node_Str",createdAt);
    om.insert("String_Node_Str",JsonUtil.rhombusMapFromJsonMap(object,definition.getDefinitions().get("String_Node_Str")),createdAt);
  }
  SortedMap<String,Object> indexValues=Maps.newTreeMap();
  indexValues.put("String_Node_Str",UUID.fromString("String_Node_Str"));
  indexValues.put("String_Node_Str","String_Node_Str");
  indexValues.put("String_Node_Str",UUID.fromString("String_Node_Str"));
  Criteria criteria=new Criteria();
  criteria.setIndexKeys(indexValues);
  criteria.setLimit(50L);
  List<Map<String,Object>> results=om.list("String_Node_Str",criteria);
  assertEquals(8,results.size());
  criteria.setStartTimestamp(1367366400000L);
  results=om.list("String_Node_Str",criteria);
  assertEquals(7,results.size());
  criteria.setStartTimestamp(1368489600000L);
  results=om.list("String_Node_Str",criteria);
  assertEquals(5,results.size());
}