### Question:
RDFModelUtil { public static String stringFrom(Model in, Lang lang) { final StringWriter out = new StringWriter(); RDFDataMgr.write(out, in, lang); return out.toString(); } private  RDFModelUtil(); static Model modelFrom(String input, Lang lang); static String stringFrom(Model in, Lang lang); static String stringFrom(Model in, RDFFormat format);  }### Answer:
@Test public void should_convert_model_to_lang_string() throws Exception { assertThat(RDFModelUtil.stringFrom(inputModel, Lang.NTRIPLES), equalTo(modelAsNTriples)); }
@Test public void should_convert_model_to_format_string() throws Exception { assertThat(RDFModelUtil.stringFrom(inputModel, RDFFormat.NTRIPLES), equalTo(modelAsNTriples)); }