### Question:
TokenSecuredResource { @GET @Path("roles-allowed-admin") @RolesAllowed("Admin") @Produces(MediaType.TEXT_PLAIN) public String helloRolesAllowedAdmin(@Context SecurityContext ctx) { return getResponseString(ctx) + ", birthdate: " + birthdate; }  @GET @Path("permit-all") @PermitAll @Produces(MediaType.TEXT_PLAIN) String hello(@Context SecurityContext ctx); @GET @Path("roles-allowed") @RolesAllowed({ "User", "Admin" }) @Produces(MediaType.TEXT_PLAIN) String helloRolesAllowed(@Context SecurityContext ctx); @GET @Path("roles-allowed-admin") @RolesAllowed("Admin") @Produces(MediaType.TEXT_PLAIN) String helloRolesAllowedAdmin(@Context SecurityContext ctx); @GET @Path("deny-all") @DenyAll @Produces(MediaType.TEXT_PLAIN) String helloShouldDeny(@Context SecurityContext ctx);  }### Answer:
@Test public void testHelloRolesAllowedAdmin() { Response response = given().auth() .oauth2(generateValidAdminToken()) .when() .get("/secured/roles-allowed").andReturn(); response.then() .statusCode(200) .body(containsString("hello + jdoe@quarkus.io, isHttps: false, authScheme: Bearer, hasJWT: true, birthdate: 2001-07-13")); }