### Question:
AclAwareDecisionVoter implements AccessDecisionVoter { @Override public boolean supports(ConfigAttribute attribute) { return baseVoter.supports(attribute); } AclAwareDecisionVoter(UserService userService); @VisibleForTesting  AclAwareDecisionVoter(AccessDecisionVoter baseVoter, UserService userService); @Override int vote(Authentication authentication, Object object, Collection<ConfigAttribute> attributes); @Override boolean supports(ConfigAttribute attribute); @Override boolean supports(Class<?> clazz);  }### Answer:
@Test public void supportsAttributeShouldBeDelegatedToBaseVoter() { ConfigAttribute configAttribute = mock(ConfigAttribute.class); voter.supports(configAttribute); verify(baseVoter).supports(eq(configAttribute)); }
@Test public void supportsClassShouldBeDelegatedToBaseVoter() { Class<?> clazz = Object.class; voter.supports(clazz); verify(baseVoter).supports(eq(clazz)); }