### Question:
GlobalVariablesElement extends ElementDefinition<String> { static GlobalType globalTypeDataOf(String variable) { GlobalType globalType = DroolsFactory.eINSTANCE.createGlobalType(); String[] properties = variable.split(":", -1); globalType.setIdentifier(properties[0]); globalType.setType(properties[1]); return globalType; } GlobalVariablesElement(String name); @Override String getValue(BaseElement element); @Override void setValue(BaseElement element, String value);  }### Answer:
@Test public void testGlobalTypeDataOf() { GlobalVariablesElement globalVariablesElement = new GlobalVariablesElement(NAME); GlobalType globalType = globalVariablesElement.globalTypeDataOf(GLOBAL_VARIABLE); assertTrue(GLOBAL_VARIABLE.startsWith(globalType.getIdentifier())); assertTrue(GLOBAL_VARIABLE.endsWith(globalType.getType())); }