### Question:
PlatformController { @Operation(summary = "Get Platforms", description = "Returns a list of all platforms registered with the Chaos Engine, including their rosters and experiment history.", responses = { @ApiResponse(description = "All platforms registered in Chaos Engine", content = @Content(array = @ArraySchema(schema = @Schema(implementation = Platform.class)))) }) @GetMapping public Collection<Platform> getPlatforms () { return platformManager.getPlatforms(); }  @Operation(summary = "Get Platforms", description = "Returns a list of all platforms registered with the Chaos Engine, including their rosters and experiment history.", responses = { @ApiResponse(description = "All platforms registered in Chaos Engine", content = @Content(array = @ArraySchema(schema = @Schema(implementation = Platform.class)))) }) @GetMapping Collection<Platform> getPlatforms(); @Operation(summary = "Get Platform Health", description = "Returns the aggregate health level of each Platform Level (i.e., IaaS, PaaS, SaaS), and an overall health level.", responses = { @ApiResponse(description = "The aggregated health of all platform levels Chaos Engine is connected into.") }) @GetMapping("/health") Map<PlatformLevel, PlatformHealth> getPlatformHealth(); @Operation(summary = "Refresh Platform Rosters", description = "Triggers all the platforms to expire their cached roster of containers, triggering them to be recreated on next call.", responses = { @ApiResponse(description = "Platform rosters have been expired and will redo lookup when next requested.") }) @PostMapping("/refresh") void expirePlatformRosterCache(); static final String PLATFORM; }### Answer:
@Test @WithAdmin public void getPlatformsAsAdmin () throws Exception { getPlatforms(status().isOk(), times(1)); }
@Test @WithGenericUser public void getPlatformsAsUser () throws Exception { getPlatforms(status().isOk(), times(1)); }
@Test @WithAnonymousUser public void getPlatformsAsAnonymous () throws Exception { getPlatforms(status().isNotFound(), never()); }