@Test
public void testFilePathCreationFailure() {

    List<Path> pathList = new ArrayList<>();
    pathList.add(Paths.get("badRoot"));
    Mockito.doReturn(pathList).when(fakeFs).getRootDirectories();
    Set<AWSLogReference> logReferences = ec2Plugin.getLogReferences();
    assertThat(logReferences).isEmpty();
}