public static Archive launch()
    {
        return launch(new Context());
    }
@Test
    @InterruptAfter(10)
    void shouldErrorOnLowSpace() throws IOException
    {
        final int streamId = 7;
        final String channel = "aeron:ipc";
        final long usableSpace = 100;
        final long threshold = 101;
        final FileStore fileStore = mock(FileStore.class);
        when(fileStore.getUsableSpace()).thenReturn(usableSpace);

        final MediaDriver.Context driverCtx = new MediaDriver.Context()
            .dirDeleteOnStart(true)
            .threadingMode(ThreadingMode.SHARED);
        final Archive.Context archiveCtx = TestContexts.localhostArchive()
            .archiveFileStore(fileStore)
            .lowStorageSpaceThreshold(threshold)
            .deleteArchiveOnStart(true)
            .threadingMode(SHARED);

        try (ArchivingMediaDriver ignore = ArchivingMediaDriver.launch(driverCtx, archiveCtx);
            AeronArchive archive = AeronArchive.connect(TestContexts.localhostAeronArchive()))
        {
            try
            {
                archive.startRecording(channel, streamId, LOCAL);
            }
            catch (final ArchiveException ex)
            {
                assertEquals(ArchiveException.STORAGE_SPACE, ex.errorCode());
                return;
            }

            fail("Expected exception");
        }
        finally
        {
            archiveCtx.deleteDirectory();
            driverCtx.deleteDirectory();
        }
    }