@Test
    public void testHandlingDefinition_EmptyContext() {
        ResolvedType javaType = Mockito.mock(ResolvedType.class);
        DefinitionKey key = new DefinitionKey(javaType, null);

        Assertions.assertFalse(this.contextImpl.containsDefinition(javaType, null));
        Assertions.assertNull(this.contextImpl.getDefinition(key));
        Assertions.assertEquals(Collections.<DefinitionKey>emptySet(), this.contextImpl.getDefinedTypes());
    }
Test for the {@link SchemaGenerationContextImpl} class.
jsonschema-generator/src/test/java/com/github/victools/jsonschema/generator/impl/SchemaGenerationContextImplTest.java