@Test
    public void testConfiguredActions() {
        mapping.setMapAnnotationedMethod(true);

        final Class handlerType = TestAnnoController.class;
        doWithMethods(handlerType, new MethodCallback() {
            public void doWith(Method method) throws IllegalArgumentException, IllegalAccessException {
                String methodName = method.getName();

                if ("relativePath".equals(methodName)) {
                    assertMappingPatterns(handlerType, method, "/test/ann//action1", "/test/annotation/action1");
                }
                else if ("absolutePath".equals(methodName)) {
                    assertMappingPatterns(handlerType, method, "/test/ann//action2", "/test/annotation/action2");
                }
            }
        });

        // stop mapping annotationed methods
        mapping.setMapAnnotationedMethod(false);

        doWithMethods(handlerType, new MethodCallback() {
            public void doWith(Method method) throws IllegalArgumentException, IllegalAccessException {
                String methodName = method.getName();

                if ("relativePath".equals(methodName)) {
                    assertNoMappings(handlerType, method);
                }
                else if ("absolutePath".equals(methodName)) {
                    assertNoMappings(handlerType, method);
                }
            }
        });
    }