@@ -0,0 +1,1715 @@
+package cgeo.geocaching.utils;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0Aimport cgeo.geocaching.test.AbstractResourceInstrumentationTestCase;%0Aimport cgeo.geocaching.test.R;%0A%0Aimport java.io.ByteArrayOutputStream;%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0A%0Apublic class ImageUtilsTest extends AbstractResourceInstrumentationTestCase %7B%0A%0A    private static final String icon64 = %22iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAABGdBTUEAALGPC/xhBQAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAABAElEQVQY002NvUpDQRQG52yEILn+IAYCClaS4tqKtZ1dbHwNuaS00dYmQmrfwMZGRBAtrMQHSCMpTCMqaIx6k909e6wCme4bPhhhhuc8d8PxeC+ZPW33++9T72ZPvdFow1SvStX9We8sz2U6FlQPLUYqqkW30VgGsKJAbur1g5pzXYMosC5giEgy+6hAtUzpqLLq3O8q7M6bbZkqmpKllExUa9+q2gvhbJrKLrLsdkVkxwABShg9eN86nUzunXU6AD/O+2EMgdJ7fAiY92EtxjcAJ+02JyKNkNLmawj9xxiLlxAu/2JcWoQmwBxAFT4Hqq1rs687GADnx9DMnOsD/AMJ54Nj8e9zcgAAAABJRU5ErkJggg==%22;%0A%0A    public void testBase64decoding() throws IOException %7B%0A        final ByteArrayOutputStream outputStream = new ByteArrayOutputStream();%0A        ImageUtils.decodeBase64ToStream(icon64, outputStream);%0A        final byte%5B%5D decodedImage = outputStream.toByteArray();%0A        outputStream.close();%0A        assertThat(decodedImage.length).as(%22decoded image size%22).isEqualTo(409);%0A        final InputStream originalStream = getResourceStream(R.raw.small_file);%0A        final byte%5B%5D originalImage = new byte%5B409%5D;%0A        assertEquals(%22original image has the right size (consistency check)%22, 409, originalStream.read(originalImage));%0A        originalStream.close();%0A        assertThat(decodedImage).as(%22decoded base64 image%22).isEqualTo(originalImage);%0A    %7D%0A%0A%7D%0A

Move ImageUtilsTest into the right place