System.out.println("key2 added, index is "+i2);
String[] keyvals1 = new String[]{"k1","v1","k2", "value2", "keynumber3", "v3", "k4", ""};
char[] chunk1 = lookup2chunk(0,keyvals1);
FeatureMap fm = gate.Factory.newFeatureMap();
addToFmFromChunk(fm,chunk1);
System.out.println("FeatureMap is "+fm);
assertEquals("v1",(String)fm.get("k1"));
assertEquals("value2",(String)fm.get("k2"));
assertEquals("",(String)fm.get("k4"));
String[] keyvals2 = new String[]{"k1","nother","k2","asasassa","k3","xxxxx"};
char[] chunk2 = lookup2chunk(0,keyvals2);
FeatureMap fm2 = gate.Factory.newFeatureMap();
addToFmFromChunk(fm2,chunk2);
assertEquals("nother",(String)fm2.get("k1"));
assertEquals("asasassa",(String)fm2.get("k2"));
assertEquals(null,fm2.get("k4"));
assertEquals("xxxxx",(String)fm2.get("k3"));
int si1 = addLookupToStore(-1,12,keyvals1);
int idx = addLookupToStore(si1,23,keyvals2);
System.out.println("Index for keyvals2: "+idx);
idx = addLookupToStore(si1,23,keyvals2);