@Test
public void convert_version_to_property_value() throws Exception {

    PropertyDefinition propertyDefinition = new PropertyDefinition();
    propertyDefinition.setType(ToscaTypes.VERSION);
    PropertyValue propertyValue = converter.toPropertyValue("3.4-SNAPSHOT", propertyDefinition);
    Object version = ToscaTypes.fromYamlTypeName(propertyDefinition.getType()).parse(propertyValue.getValue().toString());
    assertThat(version).isInstanceOf(Version.class);
    assertThat(version).isEqualTo(new Version("3.4-SNAPSHOT"));
}