@@ -0,0 +1,1702 @@
+package com.wizzardo.servlet.war;%0A%0Aimport com.wizzardo.servlet.WarBuilder;%0Aimport com.wizzardo.servlet.WarTest;%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0Aimport javax.servlet.RequestDispatcher;%0Aimport javax.servlet.ServletException;%0Aimport javax.servlet.http.HttpServlet;%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0Aimport java.io.IOException;%0A%0A/**%0A * Created by wizzardo on 08.02.15.%0A */%0Apublic class TestDispatcher extends WarTest %7B%0A    @Override%0A    protected void customizeWar(WarBuilder builder) %7B%0A        servletPath = %22/test%22;%0A        builder.addClass(Servlet1.class);%0A        builder.addClass(Servlet2.class);%0A        builder.getWebXmlBuilder()%0A                .append(new WarBuilder.ServletMapping(Servlet1.class).url(%22/test%22))%0A                .append(new WarBuilder.ServletMapping(Servlet2.class).url(%22/forward%22));%0A    %7D%0A%0A    @Test%0A    public void testOk() throws IOException %7B%0A        Assert.assertEquals(%22forwarded%22, jettyRequest().get().asString());%0A        Assert.assertEquals(%22forwarded%22, myRequest().get().asString());%0A    %7D%0A%0A    public static class Servlet1 extends HttpServlet %7B%0A        @Override%0A        protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException %7B%0A            RequestDispatcher requestDispatcher = req.getRequestDispatcher(%22/forward%22);%0A            requestDispatcher.forward(req, resp);%0A        %7D%0A    %7D%0A%0A    public static class Servlet2 extends HttpServlet %7B%0A        @Override%0A        protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException %7B%0A            resp.getWriter().write(%22forwarded%22);%0A        %7D%0A    %7D%0A%7D%0A

add Dispatcher test