@Test
public void testRequireWithConsumerFailure() {

    expExc.expect(SchemaException.class);
    expExc.expectMessage("#: required key [aaa] not found");
    Consumer<JsonValue> consumer = mockConsumer();
    subject().require("aaa", consumer);
    verify(consumer, never()).accept(any());
}