assertFalse(myCommand.isEnabled());
myMockUserListComponent.setSelectedNodes(new Object[]{"group"});
assertFalse(myCommand.isEnabled());
MockUser mockUser = new MockUser("user", null);
myMockUserListComponent.setSelectedNodes(new User[]{mockUser});
assertFalse("User is offline", myCommand.isEnabled());
mockUser.setOnline(true);
mockUser.setIDEtalkUser(false);
assertFalse("Single user selected and online but not IDEtalk user- command should be disabled",
myCommand.isEnabled());
mockUser.setIDEtalkUser(true);
assertTrue("Single user selected and online and IDEtalk user- command should be disabled",
myCommand.isEnabled());
myMockUserListComponent.setSelectedNodes(new User[]{mockUser, mockUser});
assertFalse("Two users are selected", myCommand.isEnabled());