@Test
public void testExecuteWithEmptyPassword() {

    ReflectionTestUtils.setField(createUserCmd, "password", "");
    try {
        createUserCmd.execute();
        Assert.fail("should throw exception for a empty password");
    } catch (ServerApiException e) {
        Assert.assertEquals(ApiErrorCode.PARAM_ERROR,e.getErrorCode());
        Assert.assertEquals("Empty passwords are not allowed", e.getMessage());
    }
    Mockito.verify(accountService, Mockito.never()).createUser(null, null, null, null, null, null, null, null, null);
}