*/
@Test
public void testFromString() {
String descStr = String.format(FORMAT, NAME, TYPE.toString(), CONFIG, LABEL, DESCRIPTION);
HotlinkDescriptor hotlinkDesc = new HotlinkDescriptor(descStr);
assertEquals("Name is not expected.", NAME, hotlinkDesc.getAttributeName());
assertEquals("Type is not expected.", TYPE, hotlinkDesc.getType());
assertEquals("Config is not expected.", CONFIG, hotlinkDesc.getConfig());
assertEquals("Label is not expected.", LABEL, hotlinkDesc.getLabel());
assertEquals("Description is not expected.", DESCRIPTION, hotlinkDesc.getDescription());
descStr = String.format(FORMAT, NAME, TYPE.toString(), CONFIG, "", DESCRIPTION);
hotlinkDesc = new HotlinkDescriptor(descStr);
assertEquals("Name is not expected.", NAME, hotlinkDesc.getAttributeName());
assertEquals("Type is not expected.", TYPE, hotlinkDesc.getType());
assertEquals("Config is not expected.", CONFIG, hotlinkDesc.getConfig());
assertEquals("Label is not expected.", null, hotlinkDesc.getLabel());
assertEquals("Description is not expected.", DESCRIPTION, hotlinkDesc.getDescription());
descStr = String.format(FORMAT, NAME, TYPE.toString(), "", "", DESCRIPTION);
hotlinkDesc = new HotlinkDescriptor(descStr);
assertEquals("Name is not expected.", NAME, hotlinkDesc.getAttributeName());
assertEquals("Type is not expected.", TYPE, hotlinkDesc.getType());
assertEquals("Config is not expected.", null, hotlinkDesc.getConfig());
assertEquals("Label is not expected.", null, hotlinkDesc.getLabel());
assertEquals("Description is not expected.", DESCRIPTION, hotlinkDesc.getDescription());
}