@Test(expected = FileAlreadyExistsException.class)
public void testSafeCreateDirectoryExistingFile() throws IOException {

    Path directory = Files.createDirectories(folder.getRoot().toPath()
            .resolve("this/is/the/directory/for/all/of/my/downloads"));
    Path file = Files.write(directory.resolve("foo"), "some data".getBytes(StandardCharsets.UTF_8));
    SW360AttachmentUtils.safeCreateDirectory(file, false);
}