@@ -0,0 +1,1743 @@
+package com.pm.server.controller;%0A%0Aimport static org.junit.Assert.fail;%0Aimport static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;%0Aimport static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;%0A%0Aimport java.util.Arrays;%0Aimport java.util.List;%0A%0Aimport org.apache.logging.log4j.LogManager;%0Aimport org.apache.logging.log4j.Logger;%0Aimport org.junit.Before;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.test.web.servlet.MockMvc;%0Aimport org.springframework.test.web.servlet.setup.MockMvcBuilders;%0Aimport org.springframework.web.context.WebApplicationContext;%0A%0Aimport com.pm.server.ControllerTestTemplate;%0Aimport com.pm.server.datatype.Coordinate;%0Aimport com.pm.server.datatype.CoordinateImpl;%0Apublic class GhostControllerTest extends ControllerTestTemplate %7B%0A%0A%09private static final List%3CCoordinate%3E randomCoordinateList = Arrays.asList(%0A%09%09%09new CoordinateImpl(12345.54321, 95837.39821),%0A%09%09%09new CoordinateImpl(49381.30982, 39399.49932)%0A%09);%0A%0A%09private static final String BASE_MAPPING = %22/ghost%22;%0A%0A%09private static final Logger log =%0A%09%09%09LogManager.getLogger(GhostControllerTest.class.getName());%0A%0A%09@Autowired%0A%09private WebApplicationContext webApplicationContext;%0A%0A%09private MockMvc mockMvc;%0A%0A%09@Before%0A%09public void setUp() %7B%0A%0A%09%09mockMvc = MockMvcBuilders%0A%09%09%09%09.webAppContextSetup(this.webApplicationContext)%0A%09%09%09%09.build();%0A%0A%09%7D%0A%0A%09private void createGhost_failUponException(Coordinate location) %7B%0A%0A%09%09String path =%0A%09%09%09%09BASE_MAPPING + %22/%22 +%0A%09%09%09%09location.getLatitude() + %22/%22 +%0A%09%09%09%09location.getLongitude();%0A%0A%09%09try %7B%0A%09%09%09mockMvc%0A%09%09%09%09%09.perform(post(path))%0A%09%09%09%09%09.andExpect(status().isOk());%0A%09%09%7D%0A%09%09catch(Exception e) %7B%0A%09%09%09log.error(e.getMessage());%0A%09%09%09fail();%0A%09%09%7D%0A%0A%09%7D%0A%0A%7D%0A

Add skeleton for GhostControllerTest