@Test(expected = MetafileIsFolderException.class)
public void getNextBlockUuidByFolder()
        throws BlockDoesNotExistException, MetafileIsFolderException {

    Map<String, String> properties = new HashMap<>();
    properties.put("typeOnFs", FileType.DIR.toString());
    metafile.setProperties(properties);
    //here it throws exception
    blockManipulationService.getNextBlockUuid(metafile);
}