@@ -0,0 +1,1181 @@
+package net.openhft.chronicle.wire.issue;%0A%0Aimport net.openhft.chronicle.core.pool.ClassAliasPool;%0Aimport net.openhft.chronicle.wire.SelfDescribingMarshallable;%0Aimport net.openhft.chronicle.wire.WireType;%0Aimport org.junit.Ignore;%0Aimport org.junit.Test;%0A%0Apublic class Issue277 %7B%0A%0A    @Ignore(%22https://github.com/OpenHFT/Chronicle-Wire/issues/277%22)%0A    @Test(expected = IllegalArgumentException.class)%0A    public void reproduce() %7B%0A        // This is needed in order to reproduce the problem%0A        ClassAliasPool.CLASS_ALIASES.addAlias(Data1.class);%0A%0A        // This should throw a RuntimeException as Data1.class != Data2.class%0A        Data2 o2 = WireType.TEXT.fromString(Data2.class, %22!Data1 %7B%5Cn%22 +%0A                %22  name: Tom,%5Cn%22 +%0A                %22  age: 25,%5Cn%22 +%0A                %22  address: %5C%2221 high street, Liverpool%5C%22%5Cn%22 +%0A                %22%7D%5Cn%22);%0A%0A        System.out.println(%22o2 = %22 + o2);%0A    %7D%0A%0A    private static class Data1 extends SelfDescribingMarshallable %7B%0A        String name;%0A        int age;%0A        String address;%0A    %7D%0A%0A    private static class Data2 extends SelfDescribingMarshallable %7B%0A        String name;%0A        int age;%0A        String address;%0A    %7D%0A%0A%7D%0A

Add test reproducing #277