static void verifyCarService(Service carService, Message car, EnumGroup condition)
    {
        Annotation a = carService.getAnnotation("A");
        assertNotNull(a);

        assertEquals(Boolean.TRUE, a.getValue("public"));
        assertTrue(car == a.getValue("target"));

        assertEquals(Boolean.TRUE, carService.getOptions().get("public"));
        assertTrue(car == carService.getOptions().get("target"));

        Service.RpcMethod rm = carService.getRpcMethod("getMostRecentCar");
        assertNotNull(rm);

        Annotation rmA = rm.getAnnotation("A");
        assertNotNull(rmA);

        assertEquals(Boolean.FALSE, rmA.getValue("throttle"));
        assertTrue(condition == rmA.getValue("might_wanna_specify"));

        assertEquals(Boolean.FALSE, rm.getOptions().get("throttle"));
        assertTrue(condition == rm.getOptions().get("might_wanna_specify"));
    }
Test for references configured via options and annotations.

@author David Yu
@created Dec 22, 2011
protostuff-parser/src/test/java/io/protostuff/parser/ConfiguredReferenceTest.java