@Test
public void groupedModelToStringTest() throws Exception {

    assertEquals(removeWhitespace(expectedJsonld), removeWhitespace(RestUtils.groupedModelToString(model, "jsonld", transformer)));
    assertEquals(expectedGroupedTurtle, RestUtils.groupedModelToString(model, "turtle", transformer));
    assertTrue(equalsIgnoreNewline(expectedGroupedRdfxml, RestUtils.groupedModelToString(model, "rdf/xml", transformer)));
    assertEquals(removeWhitespace(expectedJsonld), removeWhitespace(RestUtils.groupedModelToString(model, "something", transformer)));
}