package org.buddycloud.channelserver.pubsub.model.impl;

import nl.jqno.equalsverifier.EqualsVerifier;

import org.junit.Test;

public class NodeAffiliationImplTest {

    @Test
    public void testEquals() {
        EqualsVerifier.forClass(NodeAffiliationImpl.class).verify();
    }

}

@@ -61,124 +61,391 @@
 ort 
-nl.jqno.equalsverifier.EqualsVerifier;%0A%0Aimport org.junit.Test;%0A%0Apublic class NodeAffiliationImplTest %7B%0A%0A    @Test%0A  
+java.util.Date;%0A%0Aimport junit.framework.Assert;%0Aimport nl.jqno.equalsverifier.EqualsVerifier;%0A%0Aimport org.buddycloud.channelserver.pubsub.affiliation.Affiliations;%0Aimport org.junit.Test;%0Aimport org.xmpp.packet.JID;%0A%0Apublic class NodeAffiliationImplTest %7B%0A%0A  private String node = %22/user/test@example.com/posts%22;%0A  private JID fullJid = new JID(%22test@example.com/resource%22);%0A%0A  @Test%0A
   pu
@@ -469,20 +469,16 @@
 als() %7B%0A
-    
     Equa
@@ -536,15 +536,292 @@
 fy();%0A  
+%7D%0A%0A  @Test%0A  public void providingFullJidSetsAsAsBareJid() throws Exception %7B%0A    NodeAffiliationImpl affiliation =%0A        new NodeAffiliationImpl(node, fullJid, Affiliations.member, new Date());%0A    Assert.assertEquals(fullJid.toBareJID(), affiliation.getUser().toString());%0A
   %7D%0A%0A%7D%0A

Increase coverage of NodeAffiliationImpl to 100%