@Test
    public void testEntityWithFieldAlias()
    {
        RuntimeSchema<EntityWithFieldAlias> schema = (RuntimeSchema<EntityWithFieldAlias>) RuntimeSchema
                .getSchema(EntityWithFieldAlias.class, RuntimeEnv.ID_STRATEGY);

        assertTrue(schema.getFieldCount() == 2);

        // The field with the smallest field number will be written first.
        // In this case, field200 (despite field400 being declared 1st)
        verify(schema, 200, "f200", 0);
        verify(schema, 400, "field400", 1);
    }
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