@Test
public void testGetRootFolder() throws IOException {

    assertThat(FileWorkspaceImpl.getRootFolder(JIM_FS.getPath("/workspace.xml")))
            .isAbsolute()
            .hasFileName("workspace")
            .matches(o -> o.getFileSystem().equals(JIM_FS));
    assertThatThrownBy(() -> FileWorkspaceImpl.getRootFolder(null)).isInstanceOf(NullPointerException.class);
    assertThatThrownBy(() -> FileWorkspaceImpl.getRootFolder(JIM_FS.getPath("/"))).isInstanceOf(IOException.class);
}