@Test
public void testRequireWithFunctionFailure() {

    expExc.expect(SchemaException.class);
    expExc.expectMessage("#: required key [aaa] not found");
    subject().requireMapping("aaa", val -> false);
}