@Test
public void testSupportsIndex() {

    OffHeapPersistence<Car, Integer> persistence = OffHeapPersistence.onPrimaryKey(Car.CAR_ID);
    Index<Car> offHeapIndex = OffHeapIndex.onAttribute(Car.MANUFACTURER);
    Index<Car> diskIndex = DiskIndex.onAttribute(Car.MANUFACTURER);
    Index<Car> navigableIndex = NavigableIndex.onAttribute(Car.MANUFACTURER);
    Assert.assertTrue(persistence.supportsIndex(offHeapIndex));
    Assert.assertFalse(persistence.supportsIndex(diskIndex));
    Assert.assertFalse(persistence.supportsIndex(navigableIndex));
}