### Question:
AuthController { @GetMapping(path = ALL_PUBLIC_KEYS_PATH) @ResponseBody public JSONObject getAllPublicKeys() { final List<JWK> keys = new LinkedList<>(); keys.addAll(zosmfService.getPublicKeys().getKeys()); keys.add(jwtSecurityInitializer.getJwkPublicKey()); return new JWKSet(keys).toJSONObject(true); }  @DeleteMapping(path = INVALIDATE_PATH) void invalidateJwtToken(HttpServletRequest request, HttpServletResponse response); @GetMapping(path = DISTRIBUTE_PATH) void distributeInvalidate(HttpServletRequest request, HttpServletResponse response); @GetMapping(path = ALL_PUBLIC_KEYS_PATH) @ResponseBody JSONObject getAllPublicKeys(); @GetMapping(path = CURRENT_PUBLIC_KEYS_PATH) @ResponseBody JSONObject getCurrentPublicKeys(); static final String CONTROLLER_PATH; static final String INVALIDATE_PATH; static final String DISTRIBUTE_PATH; static final String PUBLIC_KEYS_PATH; static final String ALL_PUBLIC_KEYS_PATH; static final String CURRENT_PUBLIC_KEYS_PATH; }### Answer:
@Test void testGetAllPublicKeys() throws Exception { initPublicKeys(true); JWKSet jwkSet = new JWKSet(Arrays.asList(jwk1, jwk2, jwk3)); this.mockMvc.perform(get("/gateway/auth/keys/public/all")) .andExpect(status().is(SC_OK)) .andExpect(content().json(jwkSet.toString())); }