    @Test
    public void testGetTypeParametersWithIndirectTypeParameters() {

        MyParameterizedClassC myParameterizedObject = new MyParameterizedClassC() {
        };
        Map<String, Type> expectedTypeParameters = new HashMap<>();
        expectedTypeParameters.put("A", Long.class);

        final Map<String, Type> typeParameters = ReflectionUtils.getTypeParameters(
                myParameterizedObject.getClass(),
                MyParameterizedInterface.class
        );

        Assert.assertEquals(expectedTypeParameters, typeParameters);
    }