### Question:
STSTokenGenerationServiceAuthzModule extends SpecialAndAdminUserOnlyAuthzModule { @Override public Promise<AuthorizationResult, ResourceException> authorizeAction(Context context, ActionRequest request) { return rejectConsumption(); } @Inject  STSTokenGenerationServiceAuthzModule(Config<SessionService> sessionService, AgentIdentity agentIdentity,
                                                SpecialUserIdentity specialUserIdentity, @Named("frRest") Debug debug); @Override String getName(); @Override Promise<AuthorizationResult, ResourceException> authorizeUpdate(Context context, UpdateRequest request); @Override Promise<AuthorizationResult, ResourceException> authorizePatch(Context context, PatchRequest request); @Override Promise<AuthorizationResult, ResourceException> authorizeAction(Context context, ActionRequest request); static final String NAME; }### Answer:
@Test public void testActionRejected() throws ExecutionException, InterruptedException { Promise<AuthorizationResult, ResourceException> result = authzModule.authorizeAction(mockSSOTokenContext, mockActionRequest); assertFalse(result.get().isAuthorized()); }