public String[] getFiles( final VariableSpace space ) {
    return getFiles( space, true );
  }
@Test
  public void testGetFiles() {
    String[] filePaths;

    filePaths = meta.getFiles( "foo", "txt", false );
    assertNotNull( filePaths );
    assertEquals( 1, filePaths.length );
    assertEquals( "foo.txt", filePaths[ 0 ] );
    filePaths = meta.getFiles( "foo", "txt", true );
    assertNotNull( filePaths );
    assertEquals( 1, filePaths.length );
    assertEquals( "foo.txt", filePaths[ 0 ] );

    when( meta.isStepNrInFilename() ).thenReturn( true );

    filePaths = meta.getFiles( "foo", "txt", false );
    assertNotNull( filePaths );
    assertEquals( 1, filePaths.length );
    assertEquals( "foo_<step>.txt", filePaths[ 0 ] );
    filePaths = meta.getFiles( "foo", "txt", true );
    assertNotNull( filePaths );
    assertEquals( 4, filePaths.length );
    assertEquals( "foo_0.txt", filePaths[ 0 ] );
    assertEquals( "foo_1.txt", filePaths[ 1 ] );
    assertEquals( "foo_2.txt", filePaths[ 2 ] );
    assertEquals( "...", filePaths[ 3 ] );

    when( meta.isPartNrInFilename() ).thenReturn( true );

    filePaths = meta.getFiles( "foo", "txt", false );
    assertNotNull( filePaths );
    assertEquals( 1, filePaths.length );
    assertEquals( "foo_<step>_<partition>.txt", filePaths[ 0 ] );

    when( meta.getSplitEvery() ).thenReturn( 1 );

    filePaths = meta.getFiles( "foo", "txt", false );
    assertNotNull( filePaths );
    assertEquals( 1, filePaths.length );
    assertEquals( "foo_<step>_<partition>_<split>.txt", filePaths[ 0 ] );

  }