credential = Mockito.mock(Credential.class);
authentication = Mockito.mock(Authentication.class);
Mockito.when(authenticationManager.authenticate(credential)).thenReturn(authentication);
Mockito.when(authentication.getPrincipal()).thenReturn(Mockito.mock(Principal.class));
List<UserLoggedStatus> list = new ArrayList<UserLoggedStatus>();
UserLoggedStatus loggedStatus = new UserLoggedStatus("test", "1001");
list.add(loggedStatus);
Mockito.when(userLoggedStatusStore.findUserLoggedStatus(Mockito.anyString())).thenReturn(list);
App app = new App();
Mockito.when(appService.findAppById(Mockito.anyString())).thenReturn(app);
Assert.assertEquals(1, this.ki4soService.getAppList(credential).size());