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

        assertTrue(schema.getFields().size() == 4);

        assertTrue(schema.getFields().get(0) instanceof RuntimeMessageField);
        assertTrue(schema.getFields().get(1) instanceof RuntimeMessageField);

        assertTrue(schema.getFields().get(2) instanceof RuntimeObjectField);
        assertTrue(schema.getFields().get(3) instanceof RuntimeDerivativeField);
    }
@param tasks
           the tasks to set
protostuff-runtime/src/test/java/io/protostuff/runtime/CollectionTest.java