@Test(timeout=60000)
public void testPut() throws Exception {

    createPageFileAndIndex(100);
    ListIndex<String, Long> listIndex = ((ListIndex<String, Long>) this.index);
    this.index.load(tx);
    tx.commit();
    int count = 30;
    tx = pf.tx();
    doInsert(count);
    tx.commit();
    assertEquals("correct size", count, listIndex.size());
    tx = pf.tx();
    Long value = listIndex.get(tx, key(10));
    assertNotNull(value);
    listIndex.put(tx, key(10), Long.valueOf(1024));
    tx.commit();
    tx = pf.tx();
    value = listIndex.get(tx, key(10));
    assertEquals(1024L, value.longValue());
    assertTrue(listIndex.size() == 30);
    tx.commit();
    tx = pf.tx();
    value = listIndex.put(tx, key(31), Long.valueOf(2048));
    assertNull(value);
    assertTrue(listIndex.size() == 31);
    tx.commit();
}