public boolean isAvailable() {
        return type == Type.available;
    }
@Test
    public void isPresenceAvailableTest() {
        PresenceBuilder presence = getNewPresence();
        presence.ofType(Presence.Type.available);
        assertTrue(presence.build().isAvailable());

        presence.ofType(Presence.Type.unavailable);
        assertFalse(presence.build().isAvailable());
    }