SingleAuthScopeExpression extends AbstractAuthScopeExpression { @Override public String[] getAllScopes() { return new String[] {scope}; } SingleAuthScopeExpression(String scope); @Override String[] getAllScopes(); @Override boolean isAuthorized(Set<String> userScopes); @Override String toLoggingForm(); @Override boolean equals(Object obj); @Override int hashCode();  }
@Test public void testGetAllScopes() { SingleAuthScopeExpression expression = new SingleAuthScopeExpression("scope0"); assertThat(ImmutableList.copyOf(expression.getAllScopes())).containsExactly("scope0"); }