private int adjustOffsetForUnitTests(int offset){
  if (System.getProperty("fdbunit") == null)   return offset;
 else   return 0;
}

private int adjustOffsetForUnitTests ( int offset ) { if ( System . getProperty ( "fdbunit" ) == null ) return offset ; else return 0 ; }
when running unit tests , we want byte offsets into the file to always be displayed as zero , so that the unit test expected results will match up with the actual results . this is just a simple helper function that deals with that .
