@@ -0,0 +1,2008 @@
+package org.zwobble.mammoth.tests.conversion;%0A%0Aimport org.junit.jupiter.api.Test;%0Aimport org.zwobble.mammoth.internal.conversion.InternalImageConverter;%0Aimport org.zwobble.mammoth.internal.documents.Image;%0Aimport org.zwobble.mammoth.internal.html.Html;%0Aimport org.zwobble.mammoth.internal.html.HtmlNode;%0A%0Aimport java.io.ByteArrayInputStream;%0Aimport java.io.IOException;%0Aimport java.util.List;%0Aimport java.util.Optional;%0A%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.zwobble.mammoth.internal.util.Lists.list;%0Aimport static org.zwobble.mammoth.internal.util.Maps.map;%0Aimport static org.zwobble.mammoth.tests.DeepReflectionMatcher.deepEquals;%0A%0Apublic class InternalImageConverterTests %7B%0A    @Test%0A    public void whenElementDoesNotHaveAltTextThenAltAttributeIsNotSet() throws IOException %7B%0A        Image internalImage = new Image(%0A            Optional.empty(),%0A            Optional.of(%22image/jpeg%22),%0A            () -%3E new ByteArrayInputStream(new byte%5B%5D%7B97, 98, 99%7D)%0A        );%0A%0A        InternalImageConverter imageConverter = InternalImageConverter.imgElement(image -%3E %7B%0A            return map(%22src%22, %22%3Csrc%3E%22);%0A        %7D);%0A        List%3CHtmlNode%3E result = imageConverter.convert(internalImage);%0A%0A        assertThat(%0A            result,%0A            deepEquals(list(Html.element(%22img%22, map(%22src%22, %22%3Csrc%3E%22))))%0A        );%0A    %7D%0A%0A    @Test%0A    public void whenElementHasAltTextThenAltAttributeIsSet() throws IOException %7B%0A        Image internalImage = new Image(%0A            Optional.empty(),%0A            Optional.of(%22image/jpeg%22),%0A            () -%3E new ByteArrayInputStream(new byte%5B%5D%7B97, 98, 99%7D)%0A        );%0A%0A        InternalImageConverter imageConverter = InternalImageConverter.imgElement(image -%3E %7B%0A            return map(%22alt%22, %22%3Calt%3E%22, %22src%22, %22%3Csrc%3E%22);%0A        %7D);%0A        List%3CHtmlNode%3E result = imageConverter.convert(internalImage);%0A%0A        assertThat(%0A            result,%0A            deepEquals(list(Html.element(%22img%22, map(%22alt%22, %22%3Calt%3E%22, %22src%22, %22%3Csrc%3E%22))))%0A        );%0A    %7D%0A%7D%0A

Add tests for InternalImageConverter