Assert.assertFalse(presence8.isAvailable());
}
@Test
public void testComparableImplementation() {
Presence presenceUnavailable = new Presence(Presence.Type.UNAVAILABLE);
Presence presenceDnd = new Presence(Presence.Show.DND);
presenceDnd.setPriority((byte) 1);
Presence presenceAway = new Presence(Presence.Show.AWAY);
presenceAway.setPriority((byte) 1);
Presence presenceXa = new Presence(Presence.Show.XA);
presenceXa.setPriority((byte) 1);
Presence presenceChat = new Presence(Presence.Show.CHAT);
presenceChat.setPriority((byte) 1);
Presence presencePrio1 = new Presence();
presencePrio1.setPriority((byte) 1);
Presence presencePrio2 = new Presence();
presencePrio2.setPriority((byte) 2);
Presence presencePrio1Unavailble = new Presence(Presence.Type.UNAVAILABLE);
presencePrio1Unavailble.setPriority((byte) 1);
List<Presence> list = new ArrayList<>();
list.add(presenceAway);
list.add(presenceDnd);
list.add(presenceChat);