@Test
public void setAllocationForBlockByUuid()
        throws BlockNotExistInMetatableException {

    Metafile newMetafile = vufsService.createEmptyMetafile();
    newMetafile.setAllocationStrategy(AllocationStrategy.HA);
    vufsService.addMetafileToMetatable(newMetafile);
    String newBlockUuid = UUID.randomUUID().toString();
    vufsService.addBlockByUuidToMetafile(newBlockUuid, newMetafile);
    Set<String> allocationSet = new HashSet<>(5);
    for (int i = 0; i < 5; i++) {
        allocationSet.add(UUID.randomUUID().toString());
    }
    vufsService.setAllocationForBlockByUuid(newBlockUuid, allocationSet);
    Set<String> resultAllocationSet = vufsService.getAllocationByBlockUuid(newBlockUuid);
    assertFalse(resultAllocationSet.isEmpty());
    assertEquals(resultAllocationSet.size(), 5);
}