### Question:
AssetSchemaAttribute extends AssetReferenceable { public AssetSchemaType getAttributeType() { if ((schemaAttributeBean != null) && (schemaAttributeBean.getAttributeType() != null)) { return AssetSchemaType.createAssetSchemaType(parentAsset, schemaAttributeBean.getAttributeType()); } return null; } protected  AssetSchemaAttribute(SchemaAttribute schemaAttributeBean);  AssetSchemaAttribute(AssetDescriptor parentAsset,
                                SchemaAttribute schemaAttributeBean);  AssetSchemaAttribute(AssetDescriptor parentAsset, AssetSchemaAttribute template); AssetSchemaAttribute cloneAssetSchemaAttribute(AssetDescriptor parentAsset); String getAttributeName(); int getElementPosition(); SchemaAttributeCategory getCategory(); String getCardinality(); int getMinCardinality(); int getMaxCardinality(); boolean allowsDuplicateValues(); boolean hasOrderedValues(); DataItemSortOrder getSortOrder(); String getDefaultValueOverride(); @Deprecated AssetSchemaType getLocalSchemaType(); AssetSchemaType getAttributeType(); AssetSchemaLink getExternalSchemaLink(); List<AssetSchemaAttributeRelationship> getAttributeRelationships(); @Override String toString(); @Override boolean equals(Object objectToCompare);  }### Answer:
@Test public void testSchemaType() { AssetDescriptor parentAsset = new AssetSummary(new Asset()); PrimitiveSchemaType schemaType = new PrimitiveSchemaType(); SchemaAttribute testBean = new SchemaAttribute(); testBean.setAttributeType(schemaType); AssetSchemaAttribute testTemplate = new AssetSchemaAttribute(null); AssetSchemaAttribute testObject; assertTrue(testTemplate.getAttributeType() == null); testTemplate = new AssetSchemaAttribute(testBean); assertTrue(testTemplate.getAttributeType() != null); testObject = new AssetSchemaAttribute(parentAsset, testTemplate); assertTrue(testObject.getAttributeType() != null); }