public class ResourceAllocationSettingDataHandlerTest extends BaseHandlerTest {
public void testNormal() {
InputStream is = getClass().getResourceAsStream("/resourceallocation.xml");
ResourceAllocationSettingData result = factory.create(
injector.getInstance(ResourceAllocationSettingDataHandler.class)).parse(is);
ResourceAllocationSettingData expects = ResourceAllocationSettingData.builder().allocationUnits("Gigabytes")
.caption("1234568").description("Hard Disk").elementName("D:\\").hostResource("data").instanceID("6")
.resourceType(ResourceAllocationSettingData.ResourceType.PARTITIONABLE_UNIT).virtualQuantity(50l)
.build();
assertEquals(result.toString(), expects.toString());
}