static Class<?> genericTypeFrom(Class<?> c, String fieldName, int index)
            throws Exception
    {
        return RuntimeFieldFactory.getGenericType(
                c.getDeclaredField(fieldName), index);
    }
Test generic types.

@author David Yu
@created May 3, 2012
protostuff-runtime/src/test/java/io/protostuff/runtime/GenericTypeTest.java