public String getJsonString() throws IOException {
    try (OutputStream outputStream = new ByteArrayOutputStream()) {
      new ObjectMapper().writeValue(outputStream, skaffoldFilesTemplate);
      return outputStream.toString();
    }
  }
@Test
  public void testGetJsonString() throws IOException {
    SkaffoldFilesOutput skaffoldFilesOutput = new SkaffoldFilesOutput();
    skaffoldFilesOutput.addBuild(Paths.get("buildFile1"));
    skaffoldFilesOutput.addBuild(Paths.get("buildFile2"));
    skaffoldFilesOutput.addInput(Paths.get("input1"));
    skaffoldFilesOutput.addInput(Paths.get("input2"));
    skaffoldFilesOutput.addIgnore(Paths.get("ignore1"));
    skaffoldFilesOutput.addIgnore(Paths.get("ignore2"));
    Assert.assertEquals(TEST_JSON, skaffoldFilesOutput.getJsonString());
  }