@@ -0,0 +1,1413 @@
+package com.atexpose;%0A%0Aimport com.atexpose.dispatcher.IDispatcher;%0Aimport com.atexpose.dispatcherfactories.WebServerBuilder;%0Aimport io.schinzel.basicutils.Sandman;%0Aimport org.jsoup.Connection;%0Aimport org.jsoup.Jsoup;%0Aimport org.junit.After;%0Aimport org.junit.Test;%0A%0Aimport java.io.IOException;%0A%0Aimport static org.assertj.core.api.Assertions.*;%0A%0A%0A/**%0A * Tests different set ups of the web server.%0A *%0A * @author Schinzel%0A */%0A%0Apublic class WebServerCustomTest %7B%0A    private AtExpose mAtExpose;%0A%0A%0A    @After%0A    public void after() %7B%0A        mAtExpose.shutdown();%0A        //Snooze required to get tests to work on Travis%0A        Sandman.snoozeMillis(10);%0A    %7D%0A%0A%0A    @Test%0A    public void requestPage_PageDoesNotExist_404() throws IOException %7B%0A        String html404Page = %22%3Chtml%3E%3Cbody%3ENothing here%3C/body%3E%3C/html%3E%22;%0A        IDispatcher webServer = WebServerBuilder.create()%0A                //Set custom 404 page%0A                .html404Page(html404Page)%0A                //Build web server%0A                .build();%0A        mAtExpose = AtExpose.create()%0A                //Start web server%0A                .start(webServer);%0A        String result = Jsoup%0A                .connect(%22http://127.0.0.1:5555/noSuchFile.html%22)%0A                .method(Connection.Method.GET)%0A                .ignoreHttpErrors(true)%0A                .execute()%0A                .body();%0A        assertThat(result).isEqualTo(html404Page);%0A%0A    %7D%0A%7D%0A

Test added