### Question:
LootTrackerController { @RequestMapping(method = RequestMethod.POST) public void storeLootRecord(HttpServletRequest request, HttpServletResponse response, @RequestBody LootRecord record) throws IOException { SessionEntry e = auth.handle(request, response); if (e == null) { response.setStatus(HttpStatusCodes.STATUS_CODE_UNAUTHORIZED); return; } service.store(record, e.getUser()); response.setStatus(HttpStatusCodes.STATUS_CODE_OK); }  @RequestMapping(method = RequestMethod.POST) void storeLootRecord(HttpServletRequest request, HttpServletResponse response, @RequestBody LootRecord record); @GetMapping Collection<LootRecord> getLootRecords(HttpServletRequest request, HttpServletResponse response, @RequestParam(value = "count", defaultValue = "1024") int count, @RequestParam(value = "start", defaultValue = "0") int start); @DeleteMapping void deleteLoot(HttpServletRequest request, HttpServletResponse response,
		@RequestParam(required = false) String eventId);  }### Answer:
@Test public void storeLootRecord() throws Exception { LootRecord lootRecord = new LootRecord(); lootRecord.setType(LootRecordType.NPC); lootRecord.setTime(Instant.now()); lootRecord.setDrops(Collections.singletonList(new GameItem(4151, 1))); String data = RuneLiteAPI.GSON.toJson(lootRecord); mockMvc.perform(post("/loottracker").content(data).contentType(MediaType.APPLICATION_JSON)) .andExpect(status().isOk()); verify(lootTrackerService).store(eq(lootRecord), anyInt()); }