public static void createFile(String filePath) {
    Path storagePath = Paths.get(filePath);
    Path parent = storagePath.getParent();
    try {
      if (parent != null) {
        Files.createDirectories(parent);
      }
      Files.createFile(storagePath);
    } catch (UnsupportedOperationException e) {
      throw new UnimplementedRuntimeException(e, ErrorType.External);
    } catch (ClassCastException e) {
      throw new InvalidArgumentRuntimeException(e);
    } catch (SecurityException e) {
      throw new PermissionDeniedRuntimeException(e);
    } catch (IOException e) {
      throw new UnknownRuntimeException(e);
    }
  }
@Test
  public void createFile() throws IOException {
    File tempFile = new File(mTestFolder.getRoot(), "tmp");
    FileUtils.createFile(tempFile.getAbsolutePath());
    assertTrue(FileUtils.exists(tempFile.getAbsolutePath()));
    assertTrue(tempFile.delete());
  }