@@ -0,0 +1,1459 @@
+/*%0A   Copyright 2013 pid%5Bat%5Dpidster.org%0A%0A   Licensed under the Apache License, Version 2.0 (the %22License%22);%0A   you may not use this file except in compliance with the License.%0A   You may obtain a copy of the License at%0A%0A       http://www.apache.org/licenses/LICENSE-2.0%0A%0A   Unless required by applicable law or agreed to in writing, software%0A   distributed under the License is distributed on an %22AS IS%22 BASIS,%0A   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A   See the License for the specific language governing permissions and%0A   limitations under the License.%0A*/%0Apackage org.pidster.tomcat.embed.sandbox;%0A%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.pidster.tomcat.embed.DummyServlet;%0Aimport org.pidster.tomcat.embed.Tomcat;%0Aimport org.pidster.tomcat.embed.TomcatFactory;%0Aimport org.pidster.tomcat.embed.TomcatRuntime;%0A%0A%0Apublic class TomcatSimpleTest %7B%0A%0A    private TomcatRuntime runtime;%0A%0A    @Before%0A    public void setupTomcat() throws Exception %7B%0A%0A        Tomcat tomcat = new TomcatFactory().create()%0A            .newMinimalServer(8082)%0A                .createApplication(%22test%22)%0A                .addServlet(DummyServlet.class, %22/dummy%22)%0A            .build();%0A%0A        this.runtime = tomcat.start(5000L);%0A    %7D%0A%0A    @Test%0A    public void testServlet() throws Exception %7B%0A    %09// do some HTTP tests%0A    %7D%0A%0A    @After%0A    public void teardown() %7B%0A        runtime.stop(5000L);%0A    %7D%0A%0A%7D%0A

add a simple test example