Program: 112897
Project: 112897
Buggy source:
@Before public void setup() throws SchemaException, CQLException, Exception {
  dataStore=createDataStore();
  type=DataUtilities.createType("String_Node_Str","String_Node_Str");
  dataStore.createSchema(type);
  stime=DateUtilities.parseISO("String_Node_Str");
  etime=DateUtilities.parseISO("String_Node_Str");
  final Transaction transaction1=new DefaultTransaction();
  final FeatureWriter<SimpleFeatureType,SimpleFeature> writer=dataStore.getFeatureWriter(type.getTypeName(),transaction1);
  assertFalse(writer.hasNext());
  SimpleFeature newFeature=writer.next();
  newFeature.setAttribute("String_Node_Str",Long.valueOf(100));
  newFeature.setAttribute("String_Node_Str","String_Node_Str" + UUID.randomUUID().toString());
  newFeature.setAttribute("String_Node_Str",stime);
  newFeature.setAttribute("String_Node_Str",etime);
  newFeature.setAttribute("String_Node_Str",factory.createPoint(new Coordinate(27.25,41.25)));
  fids.add(newFeature.getID());
  pids.add(newFeature.getAttribute("String_Node_Str").toString());
  writer.write();
  newFeature=writer.next();
  newFeature.setAttribute("String_Node_Str",Long.valueOf(101));
  newFeature.setAttribute("String_Node_Str","String_Node_Str" + UUID.randomUUID().toString());
  newFeature.setAttribute("String_Node_Str",etime);
  newFeature.setAttribute("String_Node_Str",factory.createPoint(new Coordinate(28.25,41.25)));
  fids.add(newFeature.getID());
  pids.add(newFeature.getAttribute("String_Node_Str").toString());
  writer.write();
  writer.close();
  transaction1.commit();
  transaction1.close();
  query=new Query("String_Node_Str",ECQL.toFilter("String_Node_Str" + fids.get(0) + "String_Node_Str"),new String[]{"String_Node_Str","String_Node_Str"});
}

Fixed version (ground truth):
@Before public void setup() throws SchemaException, CQLException, Exception {
  dataStore=createDataStore();
  type=DataUtilities.createType("String_Node_Str","String_Node_Str");
  ((GeoWaveGTDataStore)dataStore).getIndexStore().addIndex(new SpatialIndexBuilder().createIndex());
  ((GeoWaveGTDataStore)dataStore).getIndexStore().addIndex(new SpatialTemporalIndexBuilder().createIndex());
  dataStore.createSchema(type);
  stime=DateUtilities.parseISO("String_Node_Str");
  mtime=DateUtilities.parseISO("String_Node_Str");
  etime=DateUtilities.parseISO("String_Node_Str");
  final Transaction transaction1=new DefaultTransaction();
  final FeatureWriter<SimpleFeatureType,SimpleFeature> writer=dataStore.getFeatureWriter(type.getTypeName(),transaction1);
  assertFalse(writer.hasNext());
  SimpleFeature newFeature=writer.next();
  newFeature.setAttribute("String_Node_Str",Long.valueOf(100));
  newFeature.setAttribute("String_Node_Str","String_Node_Str" + UUID.randomUUID().toString());
  newFeature.setAttribute("String_Node_Str",stime);
  newFeature.setAttribute("String_Node_Str",mtime);
  newFeature.setAttribute("String_Node_Str",factory.createPoint(new Coordinate(27.25,41.25)));
  fids.add(newFeature.getID());
  pids.add(newFeature.getAttribute("String_Node_Str").toString());
  writer.write();
  newFeature=writer.next();
  newFeature.setAttribute("String_Node_Str",Long.valueOf(101));
  newFeature.setAttribute("String_Node_Str","String_Node_Str" + UUID.randomUUID().toString());
  newFeature.setAttribute("String_Node_Str",mtime);
  newFeature.setAttribute("String_Node_Str",etime);
  newFeature.setAttribute("String_Node_Str",factory.createPoint(new Coordinate(28.25,41.25)));
  fids.add(newFeature.getID());
  pids.add(newFeature.getAttribute("String_Node_Str").toString());
  writer.write();
  writer.close();
  transaction1.commit();
  transaction1.close();
  query=new Query("String_Node_Str",ECQL.toFilter("String_Node_Str" + fids.get(0) + "String_Node_Str"),new String[]{"String_Node_Str","String_Node_Str"});
}