### Question:
QueryRestController { @GetMapping("queries") public List<JsonQueryMapping> get() { return registrationCache.getAll() .entrySet() .stream() .map(e -> JsonQueryMapping.from(e, registrationCache.getResponseTypes(e.getKey()))) .collect(Collectors.toList()); } QueryRestController(QueryRegistrationCache registrationCache,
                               QueryDispatcher queryDispatcher); @GetMapping("components/{component}/queries") Iterable<Query> getByComponent(@PathVariable("component") String component, @RequestParam("context") String context); @GetMapping("queries") List<JsonQueryMapping> get(); @PostMapping("queries/run") @ApiImplicitParams({ @ApiImplicitParam(name = TOKEN_PARAM, value = "Access Token", required = false, dataType = "string", paramType = "header") }) SseEmitter execute(
            @RequestHeader(value = CONTEXT_PARAM, defaultValue = Topology.DEFAULT_CONTEXT, required = false) String context,
            @RequestBody @Valid QueryRequestJson query);  }### Answer:
@Test public void get() throws Exception { List<QueryRestController.JsonQueryMapping> queries = testSubject.get(); assertNotEquals("[]", new ObjectMapper().writeValueAsString(queries)); }