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