@Test(expected = UncheckedIOException.class)
public void nonExistentPath() throws Exception {

  TopicPartition topicPartition = new TopicPartition("topic", 0);
  Map<TopicPartition, Replica> partitionsAndLogDir = singletonMap(topicPartition,
      new Replica("non-existent-folder", 0L));
  underTest.apply(partitionsAndLogDir);
}