### Question:
ProfileAttributesResolverImpl implements ProfileAttributesResolver { public static boolean isSkipProfileAttributesResolving(AttributedObject resource) { return resource.getAttributes() != null && resource.getAttributes().contains(SKIP_PROFILE_ATTRIBUTES_RESOLVING); } ProfileAttributesResolverImpl(); @PostConstruct void init(); static boolean isSkipProfileAttributesResolving(AttributedObject resource); @Override boolean containsAttribute(String str); @Override boolean isParametrizedResource(Object resource, ProfileAttributeCategory... categories); @Override @SuppressWarnings("unchecked") T mergeResource(T resource); T mergeObject(T object, String identifier); String merge(String templateString, String identifier); String merge(String templateString, String identifier, ProfileAttributeEscapeStrategy escapeStrategy); void setAttributePlaceholderPatterns(List<String> attributePlaceholderPatterns); void setProfileAttributeService(ProfileAttributeService profileAttributeService); void setMessageSource(MessageSource messageSource); void setProfileAttributeCategories(List<ProfileAttributeCategory> profileAttributeCategories); void setExcludedResourcesFromAttrResolving(Set<String> excludedResourcesFromAttrResolving); void setEnabledResolving(boolean enabledResolving); void setParametrizedResourcePatterns(List<String> parametrizedResourcePatterns); void setValidator(Validator validator); static final String attributeNameGroup; static final String categoryGroup; static final String groupExpression; static final String PROFILE_ATTRIBUTE_EXCEPTION_SUBSTITUTION_BASE; static final String IN_RESOURCE_SUFFIX; }### Answer:
@Test public void isSkipProfileAttributesResolving_returnsFalseIfAttributesAreNull_success() { AttributedObject object = createAttributedObjectMock(null); assertFalse(isSkipProfileAttributesResolving(object)); }
@Test public void isSkipProfileAttributesResolving_returnsFalseIfAttributesMissSkipFlag_success() { AttributedObject object = createAttributedObjectMock(Collections.emptyList()); assertFalse(isSkipProfileAttributesResolving(object)); }
@Test public void isSkipProfileAttributesResolving_returnsTrueIfAttributesHasSkipFlag_success() { AttributedObject object = createAttributedObjectMock(Arrays.asList( SKIP_PROFILE_ATTRIBUTES_RESOLVING, "anotherAttribute" )); assertTrue(isSkipProfileAttributesResolving(object)); }