public void testInheritedAccessConstraints() {
ResourceDefinition rootRd = new SimpleResourceDefinition(null, new NonResolvingResourceDescriptionResolver()) {
@Override
public List<AccessConstraintDefinition> getAccessConstraints() {
return Arrays.asList(
<BUG>(AccessConstraintDefinition) SensitiveTargetAccessConstraintDefinition.EXTENSIONS,
(AccessConstraintDefinition) ApplicationTypeAccessConstraintDefinition.DEPLOYMENT
);</BUG>
}
};

public void testInheritedAccessConstraints() {
ResourceDefinition rootRd = new SimpleResourceDefinition(null, new NonResolvingResourceDescriptionResolver()) {
@Override
public List<AccessConstraintDefinition> getAccessConstraints() {
return Arrays.asList(
SensitiveTargetAccessConstraintDefinition.EXTENSIONS,
ApplicationTypeAccessConstraintDefinition.DEPLOYMENT
);
}
};
