@ParameterizedTest
    @MethodSource("parametersForTestContainerType")
    public void testContainerType(String methodName, boolean isContainerType, Class<?> expectedItemType) throws Exception {
        MethodScope method = this.getTestClassMethod(methodName);

        Assertions.assertEquals(isContainerType, method.isContainerType());
        ResolvedType itemType = method.getContainerItemType();
        if (expectedItemType == null) {
            Assertions.assertNull(itemType);
        } else {
            Assertions.assertNotNull(itemType);
            Assertions.assertSame(expectedItemType, itemType.getErasedType());
        }
    }
Test for the {@link MemberScope} class.
jsonschema-generator/src/test/java/com/github/victools/jsonschema/generator/MemberScopeTest.java