ProjectFile { public String toJson() throws JsonProcessingException { return new ObjectMapper().writeValueAsString(this); }  static ProjectFile from(final Path path); static ProjectFile from(final InputStream in); String getTargetPath(final Path project); String toJson();  }
@Test public void testToJson() throws JsonProcessingException { final ProjectFile projectFile = new ProjectFile(); assertNotNull(projectFile.toJson()); }