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

                if ("index".equals(methodName)) {
                    assertMappingPatterns(handlerType, method, "/testPlain");
                }
                else if ("list".equals(methodName)) {
                    assertMappingPatterns(handlerType, method, "/testPlain/list");
                }
                else if ("doSomething".equals(methodName)) {
                    assertMappingPatterns(handlerType, method, "/testPlain/doSomething");
                }
                else if ("init".equals(methodName)) {
                    assertNoMappings(handlerType, method);
                }
                else if ("destroy".equals(methodName)) {
                    assertNoMappings(handlerType, method);
                }
            }
        });
    }