    @Test
    public void shouldRetrieveMethodBasedOnCastableType() throws Exception
    {

        Method m = InnerThree.class.getMethod("getCollection");
        Method method = ClassUtils.extractPossiblyGenericMethod(InnerOne.class, m);
        Assert.assertEquals(InnerOne.class.getMethod("getCollection"), method);
    }