source: class AuthServiceTest {
  
      @InjectMocks IAuthService authService;
      @Mock AuthProvider authProvider;
      private static final String VALID_TOKEN;
      private static final String BEARER;
  
      @Test
      public void testAuthenticate_假如用户authentication正确且有对请求url只有POST权限_当用户请求该url的GET_那么返回成功无权限() {
  
target:         when(authProvider.auth(BEARER + VALID_TOKEN, "/users", "GET")).thenReturn(Result.success(false));
          Assert.assertFalse((Boolean) authService.authenticate(BEARER + VALID_TOKEN, "/users", "GET").getData());
      }
  
  }