@Test
public void testUnknownPropertyType() throws Exception {

  // Given
  String xml =
    "<property>\n"+
    "  <name>prop_name</name>\n" +
    "  <value>prop_val</value>\n" +
    "  <property-type>PASSWORD USER UNRECOGNIZED_TYPE</property-type>\n" +
    "  <description>test description</description>\n" +
    "</property>";
  // When
  PropertyInfo propertyInfo = propertyInfoFrom(xml);
  // Then
  Set<PropertyInfo.PropertyType> expectedPropertyTypes = Sets.newHashSet(PropertyInfo.PropertyType.PASSWORD, PropertyInfo.PropertyType.USER);
  assertEquals(expectedPropertyTypes, propertyInfo.getPropertyTypes());
}