### Question:
PropertyController { @GetMapping("/properties/{name}") public ResponseEntity<List<Map<String, String>>> get(@PathVariable String name) { List<Map<String, String>> result = new ArrayList<>(); if("app-type".equals(name)) { result = Arrays.stream(AppType.values()) .filter(item -> item.getKey().equals("01")) .map(item -> { Map<String, String> map = new HashMap<String, String>(); map.put("key", item.getKey()); map.put("value", item.getLabel()); map.put("icon", item.getIcon()); return map; }).collect(Collectors.toList()); } return ResponseEntity.ok(result); }  @GetMapping("/properties/{name}") ResponseEntity<List<Map<String, String>>> get(@PathVariable String name);  }### Answer:
@Test public void get_properties_not_exist() { given() .contentType(ContentType.JSON) .when() .get("/properties/{name}", "not-exist") .then() .statusCode(HttpStatus.SC_OK) .body("size()", equalTo(0)); }
@Test public void get_app_types() { given() .contentType(ContentType.JSON) .when() .get("/properties/{name}", "app-type") .then() .statusCode(HttpStatus.SC_OK) .body("size()", equalTo(1)); }