@Test
    public void testGetCustomDefinition_withMultipleMappings() {
        CustomDefinition valueOne = Mockito.mock(CustomDefinition.class);
        CustomDefinition valueTwo = Mockito.mock(CustomDefinition.class);
        Mockito.when(this.typesInGeneralConfigPart.getCustomDefinitionProviders())
                .thenReturn(Arrays.asList((type, context) -> null, (type, context) -> valueOne, (type, context) -> valueTwo));
        // ignoring definition look-ups that return null, but taking the first non-null definition
        Assertions.assertSame(valueOne, this.instance.getCustomDefinition(Mockito.mock(ResolvedType.class), this.getContext(), null));
    }
Test for the {@link SchemaGeneratorConfigImpl} class.
jsonschema-generator/src/test/java/com/github/victools/jsonschema/generator/impl/SchemaGeneratorConfigImplTest.java