@@ -0,0 +1,1623 @@
+package com.tlswe.awsmock.ec2.servlet;%0A%0Aimport java.io.IOException;%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.Mock;%0Aimport org.mockito.Mockito;%0Aimport org.powermock.api.mockito.PowerMockito;%0Aimport org.powermock.core.classloader.annotations.PrepareForTest;%0Aimport org.powermock.modules.junit4.PowerMockRunner;%0A%0Aimport com.tlswe.awsmock.ec2.control.MockEC2QueryHandler;%0A%0A@RunWith(PowerMockRunner.class)%0A@PrepareForTest(%7BMockEC2QueryHandler.class, HttpServletRequest.class, HttpServletResponse.class%7D)%0Apublic class MockEc2EndpointServletTest %7B%0A%0A    @Mock%0A    HttpServletRequest request;%0A%0A    @Mock%0A    HttpServletResponse response;%0A%0A    @Mock%0A    MockEC2QueryHandler handler;%0A%0A    Map%3CString, String%5B%5D%3E queryParams = new HashMap%3CString, String%5B%5D%3E();%0A%0A    @Before%0A    public void doSetup()%7B%0A      PowerMockito.mockStatic(MockEC2QueryHandler.class);%0A      Mockito.when(MockEC2QueryHandler.getInstance()).thenReturn(handler);%0A      Mockito.when(request.getParameterMap()).thenReturn(queryParams);%0A    %7D%0A%0A    @Test%0A    public void Test_doPost() throws IOException%7B%0A        MockEc2EndpointServlet mockEc2EndpointServlet = new MockEc2EndpointServlet();%0A        mockEc2EndpointServlet.doPost(request, response);%0A    %7D%0A%0A    @Test%0A    public void Test_doGet() throws IOException%7B%0A        MockEc2EndpointServlet mockEc2EndpointServlet = new MockEc2EndpointServlet();%0A        mockEc2EndpointServlet.doPost(request, response);%0A    %7D%0A%0A%7D%0A

Add JUnit tests for MockEc2EndpointServlet