public static Optional<? extends Schema> getSchema(io.swagger.v3.oas.annotations.media.Content annotationContent, Components components, JsonView jsonViewAnnotation) {
        return getSchema(annotationContent, components, jsonViewAnnotation, false);
    }
@Test(dataProvider = "expectedSchemaFromTypeAndFormat")
    public void getSchema(String methodName, Map<String, Object> expected) throws NoSuchMethodException {
        final Method method = getClass().getDeclaredMethod(methodName);
        Content annotationContent = method.getAnnotation(ApiResponse.class).content()[0];
        Optional<? extends Schema> schema = AnnotationsUtils.getSchema(annotationContent, new Components(), null, false);

        Assert.assertTrue(schema.isPresent());
        Assert.assertEquals(schema.get().getType(), expected.get("type"));
        Assert.assertEquals(schema.get().getFormat(), expected.get("format"));
        Assert.assertEquals(schema.get().get$ref(), expected.get("$ref"));
    }