static long insertName(final Journal jrnl,final String name){
  IIndex index=jrnl.getIndex("TestIndex");
  index.remove("Name");
  index.insert("Name",name);
  final long ret=jrnl.commit();
  if (!name.equals(index.lookup("Name"))) {
    throw new AssertionError(name + " != " + index.lookup("Name"));
  }
  return ret;
}

static long insertName ( final Journal jrnl , final String name ) { IIndex index = jrnl . getIndex ( "TestIndex" ) ; index . remove ( "Name" ) ; index . insert ( "Name" , name ) ; final long ret = jrnl . commit ( ) ; if ( ! name . equals ( index . lookup ( "Name" ) ) ) { throw new AssertionError ( name + " != " + index . lookup ( "Name" ) ) ; } return ret ; }
add the value to the index , commit , assert value retrieval and return the commit time
