AuthScopeExpressions { public static AuthScopeExpression interpret(String... scopes) { return interpret(Arrays.asList(scopes)); } private  AuthScopeExpressions(); static AuthScopeExpression interpret(String... scopes); static AuthScopeExpression interpret(List<String> scopes); static List<String> encode(AuthScopeExpression authScopeExpression); static List<String> encodeMutable(AuthScopeExpression authScopeExpression);  }
@Test public void testInterpretDisjunctScope() { assertEquals( new DisjunctAuthScopeExpression(ImmutableList.<AbstractAuthScopeExpression>of( new SingleAuthScopeExpression("scope_1"), new SingleAuthScopeExpression("scope_2"), new SingleAuthScopeExpression("scope_3"))), AuthScopeExpressions.interpret("scope_1", "scope_2", "scope_3")); }
@Test public void testInterpretConjunctScope() { assertEquals( new ConjunctAuthScopeExpression(ImmutableList.<SingleAuthScopeExpression>of( new SingleAuthScopeExpression("scope_1"), new SingleAuthScopeExpression("scope_2"), new SingleAuthScopeExpression("scope_3"))), AuthScopeExpressions.interpret("scope_1 scope_2 scope_3")); }
@Test public void testInterpretComplexScope() { assertEquals( new DisjunctAuthScopeExpression(ImmutableList.<AbstractAuthScopeExpression>of( new ConjunctAuthScopeExpression(ImmutableList.<SingleAuthScopeExpression>of( new SingleAuthScopeExpression("scope_1"), new SingleAuthScopeExpression("scope_2"))), new ConjunctAuthScopeExpression(ImmutableList.<SingleAuthScopeExpression>of( new SingleAuthScopeExpression("scope_1"), new SingleAuthScopeExpression("scope_3"))))), AuthScopeExpressions.interpret( "scope_1 scope_2", "scope_1 scope_3")); }