@@ -0,0 +1,1625 @@
+package net.openhft.chronicle.queue.impl.single;%0A%0Aimport net.openhft.chronicle.queue.ExcerptTailer;%0Aimport net.openhft.chronicle.wire.DocumentContext;%0Aimport net.openhft.chronicle.wire.WireType;%0Aimport org.junit.Ignore;%0Aimport org.junit.Test;%0A%0Aimport static net.openhft.chronicle.queue.DirectoryUtils.tempDir;%0Aimport static org.hamcrest.CoreMatchers.is;%0Aimport static org.junit.Assert.assertThat;%0Aimport static org.junit.Assert.assertTrue;%0A%0Apublic final class InitialisationTest %7B%0A    @Ignore%0A    @Test%0A    public void shouldRecoverIfSpecifiedWireTypeDoesNotMatchPersistedFileWireType() throws Exception %7B%0A        final SingleChronicleQueueBuilder builder = builder(WireType.BINARY);%0A%0A        try (final SingleChronicleQueue textQueue = builder.build()) %7B%0A%0A            try (final SingleChronicleQueue binaryQueue =%0A                         SingleChronicleQueueBuilder.builder(textQueue.path, WireType.TEXT).build()) %7B%0A                try (final DocumentContext ctx = binaryQueue.acquireAppender().writingDocument()) %7B%0A                    ctx.wire().write(%22key%22).text(%22value%22);%0A                %7D%0A            %7D%0A%0A            final ExcerptTailer tailer = textQueue.createTailer();%0A            try (final DocumentContext ctx = tailer.readingDocument()) %7B%0A                assertTrue(ctx.isPresent());%0A%0A                assertThat(ctx.wire().read(%22key%22), is(%22value%22));%0A            %7D%0A        %7D%0A    %7D%0A%0A    private SingleChronicleQueueBuilder builder(final WireType wireType) %7B%0A        return SingleChronicleQueueBuilder.%0A                builder(tempDir(InitialisationTest.class.getSimpleName() + System.nanoTime()), wireType);%0A    %7D%0A%7D%0A

add a test to document behaviour when provided wireType does not match persisted format