    @Test
    public void testSubmitEditUserChangeToExistingUserForm() throws Exception {

        setUpMockRoleDataService();
        setUpMockUserDataService(false, false, false);
        setUpMockAuthenticationContext();

        // Finally the form is conform and the admin page is returned
        CreateUserCommand createUserCommand = createUserCommandFactory.getNewCreateUserCommand();
        createUserCommand.setSiteUrl("http://www.newSite.com/");
        createUserCommand.setEmail("admin@test.com");
        MockHttpServletRequest request = new MockHttpServletRequest();
        request.getSession().setAttribute(USER_ID_KEY, Long.valueOf(5));
        BindingResult bindingResult = new BeanPropertyBindingResult(createUserCommand,"createUserCommand");
        String result = instance.submitEditUserForm(
                createUserCommand,
                bindingResult,
                request,
            new ExtendedModelMap());

        assertEquals(EDIT_USER_VIEW_NAME, result);
        assertTrue(bindingResult.hasErrors());
        assertEquals(1,bindingResult.getFieldErrors().size());
        assertNotNull(bindingResult.getFieldErrors("email"));
        assertEquals(1,bindingResult.getFieldErrors("email").size());
        assertEquals("sign-up.existingAccountWithEmail",bindingResult.getFieldErrors("email").get(0).getCode());
    }