@NonNull
  private static VariableSpace getSpace( @NonNull ConnectionDetails connectionDetails ) {
    VariableSpace space = connectionDetails.getSpace();
    return space != null ? space : Variables.getADefaultVariableSpace();
  }
@Test
  public void testGetResolvedRootPathSubstitutesVariablesWithDefaultSpace() throws KettleException {
    when( vfsConnectionDetails.getSpace() ).thenReturn( null );

    // Default variable space is functional and has no variables, so no substitution actually occurs.
    assertGetResolvedRootPath( "root/${0}/path", "root/${0}/path", "root/${0}/path" );
  }