@NonNull
  private static VariableSpace getSpace( @NonNull ConnectionDetails connectionDetails ) {
    VariableSpace space = connectionDetails.getSpace();
    return space != null ? space : Variables.getADefaultVariableSpace();
  }
@Test
  public void testGetResolvedRootPathSubstitutesEnvironmentVariables() throws Exception {

    String rootPath = "C:\\Users";
    System.setProperty( "folder_location", rootPath );
    when( vfsConnectionDetails.getSpace() ).thenReturn( Variables.getADefaultVariableSpace() );

    assertGetResolvedRootPath( "${folder_location}", "C:/Users" );
  }