@Test public void filesPathVariables_AreProcessed_OnlyIfValueIsNotBlank() throws Exception { final String pathToFileBlankValue = "pathToFileBlankValue"; final String pathToFileValidValue = "pathToFileValidValue"; jobEntry.setVariable( pathToFileBlankValue, Const.EMPTY_STRING ); jobEntry.setVariable( pathToFileValidValue, PATH_TO_FILE ); jobEntry.setArguments( new String[] { asVariable( pathToFileBlankValue ), asVariable( pathToFileValidValue ) } ); jobEntry.setFilemasks( new String[] { null, null } ); jobEntry.setArgFromPrevious( false ); jobEntry.execute( new Result(), 0 ); verify( jobEntry ).processFile( eq( PATH_TO_FILE ), anyString(), any( Job.class ) ); }