@Test
public void removeMetafileFromParent() {

    Metafile parentMetafile = vufsService.createEmptyMetafile();
    String parentMetafileUuid = parentMetafile.getFileUuid();
    Metafile childMetafile = vufsService.createEmptyMetafile();
    String childMetafileUuid = childMetafile.getFileUuid();
    vufsService.addMetafileToMetatable(parentMetafile);
    vufsService.addMetafileAsChildToParent(childMetafile, parentMetafileUuid);
    boolean isRemoved = vufsService
            .removeMetafileFromParent(childMetafileUuid, parentMetafileUuid);
    assertTrue(isRemoved);
    assertEquals(parentMetafile.getChildFileUuidSet().size(), 0);
}