MetricProfileController { @PostMapping @RequestMapping(value = "/search/findByTags") public Boolean profilingExists(@RequestBody Map<String, String> tags) { return metricProfilingRepo.profilingExists(tags); }  @PostMapping @ResponseStatus(HttpStatus.CREATED) String createMetricProfile(@RequestBody CreateMetricProfilingRequest request); @PutMapping @ResponseStatus(HttpStatus.OK) void updateMetricProfile(@RequestParam String id, @RequestParam Boolean isStationary); @PostMapping @RequestMapping(value = "/search/findByTags") Boolean profilingExists(@RequestBody Map<String, String> tags);  }
@Test public void testSearchMetricProfiles() { val profileExists = controllerUnderTest.profilingExists(new HashMap<>()); assertNotNull(profileExists); }