@@ -0,0 +1,1649 @@
+package uk.ac.ebi.atlas.utils;%0A%0A%0Aimport autovalue.shaded.com.google.common.common.collect.Lists;%0Aimport com.google.common.collect.ImmutableMap;%0Aimport org.apache.commons.io.output.ByteArrayOutputStream;%0Aimport org.hamcrest.Matchers;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.junit.runners.JUnit4;%0Aimport java.util.Collections;%0A%0Aimport static org.junit.Assert.*;%0A%0A@RunWith(JUnit4.class)%0Apublic class SitemapWriterTest %7B%0A%0A    SitemapWriter subject = new SitemapWriter();%0A%0A%0A%0A    @Test%0A    public void testEmptyUrl() throws Exception %7B%0A        ByteArrayOutputStream baos = new ByteArrayOutputStream();%0A%0A        subject.writeDocument(baos, Collections.EMPTY_LIST, %22urlset%22, %22url%22, ImmutableMap.%3CString, String%3Eof());%0A%0A        assertEquals(%22%3C?xml version='1.0' encoding='UTF-8'?%3E%3Curlset xmlns=%5C%22http://www.sitemaps.org/schemas/sitemap/0.9%5C%22/%3E%22, baos.toString());%0A    %7D%0A%0A    @Test%0A    public void testWriteOneGene() throws Exception %7B%0A        ByteArrayOutputStream baos = new ByteArrayOutputStream();%0A%0A        subject.writeGenes(baos,Lists.%3CString%3EnewArrayList(), Lists.newArrayList(%22ASPM%22));%0A%0A        assertThat( baos.toString(), Matchers.containsString(%22%3Curl%3E%3Cloc%3Ehttp://www.ebi.ac%22 +%0A                %22.uk/gxa/genes/ASPM%3C/loc%3E%3Cchangefreq%3Emonthly%3C/changefreq%3E%3C/url%3E%22));%0A    %7D%0A%0A    @Test%0A    public void testWriteMany() throws Exception %7B%0A        ByteArrayOutputStream baos = new ByteArrayOutputStream();%0A%0A        subject.writeDocument(baos, Collections.nCopies(10,%22myCharacteristicWord%22), %22urlset%22, %22url%22, ImmutableMap.%3CString, String%3Eof());%0A%0A        assertEquals(11, baos.toString().split(%22myCharacteristicWord%22).length);%0A    %7D%0A%7D

Add test for the sitemap writer