@Override
    public void destroy() {
        ManagedExecutorService asyncExecutor = getMapStoreExecutor();

        asyncExecutor.submit(() -> {
            awaitInitFinished();
            // Instance is not shutting down.
            // Only GenericMapLoader is being closed
            if (instance.isRunning()) {
                dropMapping(mappingName);
            }
        });
    }
@Test
    public void whenMapLoaderDestroyOnMaster_thenDropMapping() {
        objectProvider.createObject(mapName, false);

        mapLoader = createMapLoader();
        assertMappingCreated();

        mapLoader.destroy();
        assertMappingDestroyed();
    }