### Question:
BaseFileOutputMeta extends BaseFileMeta { public String[] getFiles( final VariableSpace space ) { return getFiles( space, true ); }  String getExtension(); void setExtension( String extension ); String getFileName(); void setFileName( String fileName ); abstract int getSplitEvery(); abstract void setSplitEvery( int splitEvery ); boolean isFileAsCommand(); void setFileAsCommand( boolean fileAsCommand ); boolean isSpecifyingFormat(); void setSpecifyingFormat( boolean specifyingFormat ); String getDateTimeFormat(); void setDateTimeFormat( String dateTimeFormat ); boolean isTimeInFilename(); boolean isDateInFilename(); boolean isPartNrInFilename(); boolean isStepNrInFilename(); String getFileCompression(); void setFileCompression( String fileCompression ); String[] getFiles( final VariableSpace space ); String buildFilename(
    final VariableSpace space, final String stepnr, final String partnr, final String splitnr,
    final boolean ziparchive ); String buildFilename(
    final VariableSpace space, final String stepnr, final String partnr, final String splitnr,
    final boolean ziparchive, final boolean showSamples ); @Override String[] getFilePaths( final boolean showSamples );  }### Answer:
@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 ] ); }