File tmpFile = FileSupport.createTempFile();
try
{
ReadWritableFile f = new ReadWritableFileAdapter(tmpFile);
byte[] barr = writeJunk(f);
NodeRepository<K> nr = new FileBackedNodeRepository<K, V>(f, false, f.getSize(), new NumberOfRecordsNodeSizeStrategy(2), leafNodePointers, keySerializer, valueSerializer, pointerSize, 8192, null, new LogAdapterHolder(new StdOutLogAdapter()));
if (cacheSize > 0)
{
nr = new LruCacheNodeRepository<K, V>(nr, cacheSize);
}
testInsertFrom15ToOneWithTwoRecordsPerNodeInternal(nr, kconv, vconv, getNonLeafNodeSize(keySerializer.getSerializedSize(), pointerSize, 2), getLeafNodeSize(keySerializer.getSerializedSize(), valueSerializer.getSerializedSize(), pointerSize, 2, leafNodePointers));