@@ -0,0 +1,817 @@
+package co.nstant.in.cbor.encoder;%0A%0Aimport java.io.ByteArrayOutputStream;%0Aimport java.util.List;%0A%0Aimport org.junit.Test;%0A%0Aimport co.nstant.in.cbor.CborBuilder;%0Aimport co.nstant.in.cbor.CborEncoder;%0Aimport co.nstant.in.cbor.CborException;%0Aimport co.nstant.in.cbor.model.DataItem;%0A%0Apublic class MapEncoderTest %7B%0A%0A    @Test%0A    public void shouldEncodeMap() throws CborException %7B%0A        ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();%0A        List%3CDataItem%3E dataItems = new CborBuilder()%0A            .addMap()%0A            .put(1, true)%0A            .put(%22.%22, true)%0A            .put(3, true)%0A            .put(%22..%22, true)%0A            .put(2, true)%0A            .put(%22...%22, true)%0A            .end()%0A            .build();%0A        new CborEncoder(byteArrayOutputStream).encode(dataItems);%0A    %7D%0A%0A%7D%0A

Add test for MapEncoder.