@Test
public void setAllocationStrategyByMetafileUuid() throws MetafileDoesNotExistException {

    Metafile newMetafile = vufsService.createEmptyMetafile();
    newMetafile.setAllocationStrategy(AllocationStrategy.UNION);
    String metafileUUid = newMetafile.getFileUuid();
    vufsService.addMetafileToMetatable(newMetafile);
    vufsService.setAllocationStrategyByMetafileUuid(metafileUUid, AllocationStrategy.HA);
    Metafile changedMetafile = vufsService.getMetafileByUuid(metafileUUid);
    assertEquals(AllocationStrategy.HA, changedMetafile.getAllocationStrategy());
}