assertEquals(map.get(1), (Object) 2);
}
@Test
public void testMapLoaderLoadUpdatingIndex() throws Exception {
MapConfig mapConfig = getInstance().getConfig().getMapConfig("testMapLoaderLoadUpdatingIndex");
List<MapIndexConfig> indexConfigs = mapConfig.getMapIndexConfigs();
indexConfigs.add(new MapIndexConfig("name", true));
SampleIndexableObjectMapLoader loader = new SampleIndexableObjectMapLoader();
MapStoreConfig storeConfig = new MapStoreConfig();
storeConfig.setFactoryImplementation(loader);
mapConfig.setMapStoreConfig(storeConfig);
IMap<Integer, SampleIndexableObject> map = getInstance().getMap("testMapLoaderLoadUpdatingIndex");
for (int i = 0; i < 10; i++) {
map.put(i, new SampleIndexableObject("My-" + i, i));
}