PlanController { @RequestMapping(value = "/deletePlace/{id}", method = RequestMethod.POST) public boolean deletePlan(@PathVariable int id, @Validated(Create.class) @RequestBody Plan plan) { planService.deletePlan(id); return true; } @Autowired  PlanController(PlanService planService);  PlanController(); void setPlanService(PlanService planService); @RequestMapping(value = "/savePlan", method = RequestMethod.POST) Plan AddPlans(@Validated(Create.class) @RequestBody Plan plan); @RequestMapping(value = "/plan", method = RequestMethod.POST) List<Plan> GetPlans(@Validated(Create.class) @RequestBody Plan plan); @RequestMapping(value = "/deletePlace/{id}", method = RequestMethod.POST) boolean deletePlan(@PathVariable int id, @Validated(Create.class) @RequestBody Plan plan);  }
@Test public void testDeletePlans() { assertEquals(true, planController.deletePlan(1,plan)); }