### Question:
AttributeType extends StandardEntity<AttributeType> { @Override public void updateFields(StandardEntity entity) { super.updateFields(entity); AttributeType attributeTypeUpdate = (AttributeType) entity; setAllowMultipleFlg(attributeTypeUpdate.getAllowMultipleFlg()); setArchitectureFlg(attributeTypeUpdate.getArchitectureFlg()); setDescription(attributeTypeUpdate.getDescription()); setImportantFlg(attributeTypeUpdate.getImportantFlg()); setRequiredFlg(attributeTypeUpdate.getRequiredFlg()); setVisibleFlg(attributeTypeUpdate.getVisibleFlg()); setDetailedDescription(attributeTypeUpdate.getDetailedDescription()); setHideOnSubmission(attributeTypeUpdate.getHideOnSubmission()); setAllowUserGeneratedCodes(attributeTypeUpdate.getAllowUserGeneratedCodes()); setDefaultAttributeCode(attributeTypeUpdate.getDefaultAttributeCode()); setRequiredRestrictions(attributeTypeUpdate.getRequiredRestrictions()); setAssociatedComponentTypes(attributeTypeUpdate.getAssociatedComponentTypes()); setAttributeValueType(attributeTypeUpdate.getAttributeValueType()); setOptionalRestrictions(attributeTypeUpdate.getOptionalRestrictions()); } @SuppressWarnings({"squid:S2637", "squid:S1186"})  AttributeType(); void updateNullFlags(); @Override void updateFields(StandardEntity entity); ValidationResult customValidation(); void addOptionalComponentType(String componentType); void addRequiredComponentType(String componentType); @Override int hashCode(); @Override boolean equals(Object object); String getAttributeType(); void setAttributeType(String attributeType); String getDescription(); void setDescription(String description); Boolean getVisibleFlg(); void setVisibleFlg(Boolean visibleFlg); Boolean getRequiredFlg(); void setRequiredFlg(Boolean requiredFlg); Boolean getArchitectureFlg(); void setArchitectureFlg(Boolean architectureFlg); Boolean getImportantFlg(); void setImportantFlg(Boolean importantFlg); Boolean getAllowMultipleFlg(); void setAllowMultipleFlg(Boolean allowMultipleFlg); Boolean getHideOnSubmission(); void setHideOnSubmission(Boolean hideOnSubmission); String getDefaultAttributeCode(); void setDefaultAttributeCode(String defaultAttributeCode); String getDetailedDescription(); void setDetailedDescription(String detailedDescription); List<ComponentTypeRestriction> getRequiredRestrictions(); void setRequiredRestrictions(List<ComponentTypeRestriction> requiredRestrictions); List<ComponentTypeRestriction> getAssociatedComponentTypes(); void setAssociatedComponentTypes(List<ComponentTypeRestriction> associatedComponentTypes); Boolean getAllowUserGeneratedCodes(); void setAllowUserGeneratedCodes(Boolean allowUserGeneratedCodes); String getAttributeValueType(); void setAttributeValueType(String attributeValueType); List<ComponentTypeRestriction> getOptionalRestrictions(); void setOptionalRestrictions(List<ComponentTypeRestriction> optionalRestrictions); static final String FIELD_ATTRIBUTE_TYPE; static final String TYPE; static final String DI2ELEVEL; }### Answer:
@Test public void testUpdateFields() { System.out.println("updateFields"); AttributeType entity = new AttributeType(); entity.setAttributeType("Test"); entity.setAllowMultipleFlg(Boolean.TRUE); entity.setAllowUserGeneratedCodes(Boolean.FALSE); entity.setRequiredFlg(Boolean.TRUE); entity.setArchitectureFlg(Boolean.TRUE); entity.setAttributeValueType(AttributeValueType.NUMBER); entity.setDescription("Test"); entity.setDetailedDescription("Test Detail"); entity.setHideOnSubmission(Boolean.TRUE); entity.setImportantFlg(Boolean.TRUE); entity.setVisibleFlg(Boolean.TRUE); AttributeType instance = new AttributeType(); instance.updateFields(entity); assertEquals(null, instance.getAttributeType()); assertEquals(true, instance.getAllowMultipleFlg()); }