@Test
public void testCreate()
{

    NameIndex index = new NameIndex(new RAMDirectory()).create(1000);
    String str1 = "nice";
    long pointer1 = index.put(str1);
    String str2 = "nice work äöß";
    long pointer2 = index.put(str2);
    assertEquals(str2, index.get(pointer2));
    assertEquals(str1, index.get(pointer1));
    index.close();
}