@Test
public void shouldThrowExceptionIfSchemaMalformed() {

    expectedException.expect(SchemaLoadingException.class);
    expectedException.expectMessage("Unable to load JSON schema /json/schema/malformed-schema.json from classpath");
    loader.loadSchema("malformed-schema");
}