### Question:
MetaDataAttributesElement extends ElementDefinition<String> { protected MetaDataType metaDataTypeDataOf(String metaData) { MetaDataType metaDataType = DroolsFactory.eINSTANCE.createMetaDataType(); String[] properties = metaData.split(SEPARATOR); metaDataType.setName(properties[0]); metaDataType.setMetaValue(properties.length > 1 ? asCData(properties[1]) : null); return metaDataType; } MetaDataAttributesElement(String name); @Override String getValue(BaseElement element); @Override void setValue(BaseElement element, String value); static final String DELIMITER; static final String SEPARATOR; }### Answer:
@Test public void testImportTypeDataOf() { MetaDataAttributesElement metaDataAttributesElement = new MetaDataAttributesElement(NAME); MetaDataType metaDataType = metaDataAttributesElement.metaDataTypeDataOf(ATTRIBUTE); assertTrue("att1ß<![CDATA[val1]]>".startsWith(metaDataType.getName())); assertTrue("att1ß<![CDATA[val1]]>".endsWith(metaDataType.getMetaValue())); }