package net.openhft.chronicle.map;

import net.openhft.chronicle.core.values.LongValue;
import org.junit.Test;

import java.io.File;
import java.io.IOException;

public class Issue354Test {

    @Test
    public void reproduce() throws IOException {

        final File file = new File("issue354-map");
        file.delete();
        try {

            final ChronicleMapBuilder<LongValue, LongValue> builder = ChronicleMapBuilder.of(LongValue.class, LongValue.class)
                    .entries(5);

            try (ChronicleMap<LongValue, LongValue> map = builder.createOrRecoverPersistedTo(file)) {

            }

        } finally {
            file.delete();
        }

    }

}
