    @Test
    public void successLogin() throws Exception {


        LoginCommand loginCommand = new LoginCommand(userStore, sessionManager);
        LoginMessage login = new LoginMessage();
        login.setSender(123L);
        login.setLogin("Jack");
        login.setPass("qwerty");

        Session session = new Session();
        loginCommand.execute(session, login);
        assertEquals(session.getSessionUser(), defaultUser);
    }