@Test
public void percentagePropertyXmlSaveLoad() throws JAXBException {
float value = new Random().nextInt(100);
PercentageProperty floatProperty = new PercentageProperty("name", "description", "logical-name", Float.valueOf(value), false, false);
JAXBContext context = JAXBContext.newInstance(ByteProperty.class);
Marshaller marshaller = context.createMarshaller();
Unmarshaller unmarshaller = context.createUnmarshaller();
marshaller.marshal(floatProperty, f);
Object object = unmarshaller.unmarshal(f);
assertThat(object, is(instanceOf(PercentageProperty.class)));
PercentageProperty unmarsalled = (PercentageProperty) object;
assertThat(unmarsalled.getDefaultValue(), is(Float.valueOf(value)));
}