@Test
public void testIsAuthorizedWithSuccess() {

  Set<String> scopes = ImmutableSet.of("scope0", "scope1", "scope2", "scope3");
  SingleAuthScopeExpression expression1 = mock(SingleAuthScopeExpression.class);
  when(expression1.isAuthorized(scopes)).thenReturn(true);
  SingleAuthScopeExpression expression2 = mock(SingleAuthScopeExpression.class);
  when(expression2.isAuthorized(scopes)).thenReturn(true);
  SingleAuthScopeExpression expression3 = mock(SingleAuthScopeExpression.class);
  when(expression3.isAuthorized(scopes)).thenReturn(true);
  ConjunctAuthScopeExpression expression =
      new ConjunctAuthScopeExpression(
          ImmutableList.<SingleAuthScopeExpression>of(expression1, expression2, expression3));
  assertTrue(expression.isAuthorized(scopes));
}