@Test
public void shouldUnmarshallXmlToObject() throws Exception {

    PropertyValue propertyValue = new PropertyValue(false, "TestValue");
    String xml = "<propertyValue Protected='False'>TestValue</propertyValue>";
    ByteArrayInputStream inputStream = new ByteArrayInputStream(xml.getBytes());
    PropertyValue propertyValueUnmarshalled =
            new SimpleXmlParser().fromXml(inputStream, new NullProtectionStrategy(), PropertyValue.class);
    Assert.assertEquals(propertyValue.getValue(), propertyValueUnmarshalled.getValue());
}