static <T> void verify(RuntimeSchema<T> schema, int number, String name,
            int offset)
    {
        assertEquals(schema.getFields().get(offset).name, name);
        assertEquals(schema.getFields().get(offset).number, number);

        assertEquals(name, schema.getFieldName(number));
        assertEquals(number, schema.getFieldNumber(name));
    }
Test for runtime schemas to handle annotation-based field mapping.

@author Brice Jaglin
@author David Yu
@created Mar 30, 2012
protostuff-runtime/src/test/java/io/protostuff/runtime/AnnotatedFieldsTest.java