@Test
public void getRDFFormatFileExtensionTest() throws Exception {

    assertEquals(RestUtils.getRDFFormatFileExtension("jsonld"), "jsonld");
    assertEquals(RestUtils.getRDFFormatFileExtension("JSONLD"), "jsonld");
    assertEquals(RestUtils.getRDFFormatFileExtension("turtle"), "ttl");
    assertEquals(RestUtils.getRDFFormatFileExtension("TURTLE"), "ttl");
    assertEquals(RestUtils.getRDFFormatFileExtension("trig"), "trig");
    assertEquals(RestUtils.getRDFFormatFileExtension("TRiG"), "trig");
    assertEquals(RestUtils.getRDFFormatFileExtension("rdf/xml"), "rdf");
    assertEquals(RestUtils.getRDFFormatFileExtension("RDF/XML"), "rdf");
    assertEquals(RestUtils.getRDFFormatFileExtension("owl/xml"), "owx");
    assertEquals(RestUtils.getRDFFormatFileExtension("OWL/XML"), "owx");
    assertEquals(RestUtils.getRDFFormatFileExtension("something else"), "jsonld");
}