ServiceProviderTranslatorController { @RequestMapping("/translate-sp-entity-id") public Map<String, String> translate(@RequestParam String spEntityId) { Map<String, String> result = new LinkedHashMap<>(); result.put("spEntityId", spEntityId); result.put("clientId", translationService.translateServiceProviderEntityId(spEntityId)); return result; }  @RequestMapping("/translate-sp-entity-id") Map<String, String> translate(@RequestParam String spEntityId);  }
@Test public void testTranslate() throws Exception { String spEntityId = "https: Map<String, String> result = subject.translate(spEntityId); assertEquals(result.get("spEntityId"), spEntityId); assertEquals(result.get("clientId"), "https@ }