AttributesConsistencyUtils { public static boolean hasValidChange(List<InstanceAttribute> pAttributes, boolean attributesLocked, List<InstanceAttribute> currentAttrs) { if (attributesLocked) { return currentAttrs.size() == pAttributes.size() && checkAttributesEquality(currentAttrs, pAttributes); } else { return lockedAttributesConsistency(currentAttrs,pAttributes); } } private  AttributesConsistencyUtils(); static boolean hasValidChange(List<InstanceAttribute> pAttributes, boolean attributesLocked, List<InstanceAttribute> currentAttrs); static boolean isTemplateAttributesValid(List<InstanceAttributeTemplate> pAttributes, boolean attributesLocked);  }
@Test public void testHasValidChange() throws Exception { Assert.assertEquals("Wrong result from hasValidChange", expect, AttributesConsistencyUtils.hasValidChange(pAttributes, isAttributesLocked, currentAttrs)); }