@Test
public void shouldPassValidRequestAsIsIfRequestIsAuthorized() {

  service = getServingServiceGRpcController(true);
  SecurityContext context = mock(SecurityContext.class);
  SecurityContextHolder.setContext(context);
  when(context.getAuthentication()).thenReturn(authentication);
  doReturn(AuthorizationResult.success())
      .when(authProvider)
      .checkAccessToProject(anyString(), any(Authentication.class));
  service.getOnlineFeatures(validRequest, mockStreamObserver);
  Mockito.verify(mockServingService).getOnlineFeatures(validRequest);
}