SingleAuthScopeExpression extends AbstractAuthScopeExpression { @Override public String toLoggingForm() { return 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 testToLoggingForm() { AuthScopeExpression expression = new SingleAuthScopeExpression("scopeValue"); assertThat(expression.toLoggingForm()).isEqualTo("scopeValue"); }