// We expect 3 messages for the testUser since they are private and only testUser should see them.
List<SobaMessage> messages = messageService.getAllMessages(testUser, beforeCreateConnectionTimestamp, null, 5, false, null, null, null, false);
Assert.assertEquals(3, messages.size());
// The super user should not see those same messages.
User superUser = userService.getSuperUser();
superUser.setAccount(testUser.getAccount());
List<SobaMessage> messagesForSuperUser = messageService.getAllMessages(superUser, beforeCreateConnectionTimestamp, null, 5, false, null, null, null, false);
Assert.assertEquals(0, messagesForSuperUser.size());
}