private String getJson(final String xmlPath) throws Exception {
    final String uri = "choice-case-test:cont";
    final NormalizedNodeContext testNN =
        TestRestconfUtils.loadNormalizedContextFromXmlFile(xmlPath, uri);

    final OutputStream output = new ByteArrayOutputStream();
    jsonBodyWriter.writeTo(testNN, null, null, null, mediaType, null, output);

    return output.toString();
  }
  private String toJson(final String xmlDataPath) throws Exception {
    final String uri = "main-module:cont";
    final String pathToInputFile = xmlDataPath;

    final NormalizedNodeContext testNN =
        TestRestconfUtils.loadNormalizedContextFromXmlFile(pathToInputFile, uri);

    final OutputStream output = new ByteArrayOutputStream();
    jsonBodyWriter.writeTo(testNN, null, null, null, mediaType, null, output);
    final String jsonOutput = output.toString();

    return jsonOutput;
  }