UserCompareController { @GetMapping("usercmp") @SuppressWarnings("CollectionWithoutInitialCapacity") public String compare(Model model, @RequestParam("uid1") String userId1, @RequestParam("uid2") String userId2) { accountService.findOne(userId1); accountService.findOne(userId2); BitSet aac = new BitSet(), awa = new BitSet(), bac = new BitSet(), bwa = new BitSet(); fill(userId1, aac, awa); fill(userId2, bac, bwa); model.addAttribute("uid1", userId1); model.addAttribute("uid2", userId2); model.addAttribute("a", calc(aac, BitSet::andNot, bac)); model.addAttribute("b", calc(bac, BitSet::andNot, aac)); model.addAttribute("c", calc(bac, BitSet::and, aac)); model.addAttribute("d", calc(awa, BitSet::andNot, bwa)); model.addAttribute("e", calc(bwa, BitSet::andNot, awa)); model.addAttribute("f", calc(awa, BitSet::and, bwa)); return "users/compare"; }  @GetMapping("usercmp") @SuppressWarnings("CollectionWithoutInitialCapacity") String compare(Model model,
            @RequestParam("uid1") String userId1,
            @RequestParam("uid2") String userId2);  }
@Test public void testCompare() throws Exception { log.info("compare"); String uid1 = mockDataService.user().getId(); String uid2 = mockDataService.user().getId(); MvcResult result = mvc.perform(get("/usercmp") .param("uid1", uid1) .param("uid2", uid2)) .andExpect(status().isOk()) .andExpect(content().contentTypeCompatibleWith(MediaType.TEXT_HTML)) .andReturn(); }