@Test
public void testInValidTurtleOutput() throws IOException {

    InputStream rdfInput = TurtleRecordWriterTest.class.getClassLoader().getResourceAsStream(WRONG_TTL_INPUT_TEST);
    Assert.assertNotNull(rdfInput);
    try {
        Model jenaModel = ModelFactory.createDefaultModel().read(rdfInput, "", "Turtle");
        Assert.assertTrue("Turtle fomat is invalid", jenaModel.isEmpty());
        rdfInput.close();
    } catch (RiotException e) {
        Assert.assertTrue( ! e.getMessage().isEmpty());
    }
}