  @Test
  public void testReadWithRetriesFailsWhenOutputDirEmpty() throws Exception {

    FilePatternMatchingShardedFile shardedFile = new FilePatternMatchingShardedFile(filePattern);

    thrown.expect(IOException.class);
    thrown.expectMessage(containsString("Unable to read file(s) after retrying"));
    shardedFile.readFilesWithRetries(fastClock, backOff);
  }