/**
 * EmailAddressTest
 * 
 * @author ${author}
 * @since 29-May-2016
 */
package uk.co.sleonard.unison.datahandling.DAO;

import static org.junit.Assert.assertTrue;

import org.junit.Assert;
import org.junit.Test;

/**
 * The Class EmailAddressTest.
 *
 * @author Elton <elton_12_nunes@hotmail.com>
 * @since v1.2.0
 *
 */
public class EmailAddressTest {

	/**
	 * Test getEmail.
	 */
	@Test
	public void testGetEmail() {
		final String expected = "email";
		final EmailAddress actual = new EmailAddress(null, expected, null);
		Assert.assertEquals(expected, actual.getEmail());
	}

	/**
	 * Test getIpAddress.
	 */
	@Test
	public void testGetIpAddress() {
		final String expected = "ipAddress";
		final EmailAddress actual = new EmailAddress(null, null, expected);
		Assert.assertEquals(expected, actual.getIpAddress());
	}

	/**
	 * Test getName.
	 */
	@Test
	public void testGetName() {
		final String expected = "name";
		final EmailAddress actual = new EmailAddress(expected, null, null);
		Assert.assertEquals(expected, actual.getName());
	}

	/**
	 * Test HashCode.
	 */
	@Test
	public void testHashCode() {
		EmailAddress actual1 = new EmailAddress("user", "email@corporate.com", "127.0.0.1");
		EmailAddress actual2 = new EmailAddress("user2", "email2@corporate.com", "127.0.0.2");
		assertTrue(actual1.hashCode() != actual2.hashCode());
	}
}

@@ -1134,16 +1134,65 @@
 ctual1 =
+ null;%0A%09%09EmailAddress actual2 = null;%0A%09%09actual1 =
  new Ema
@@ -1244,37 +1244,24 @@
 .0.0.1%22);%0A%09%09
-EmailAddress 
 actual2 = ne
@@ -1319,16 +1319,517 @@
 7.0.0.2%22
+);%0A%09%09assertTrue(actual1.hashCode() != actual2.hashCode());%0A%09%09actual1 = new EmailAddress(%22user%22, %22email@corporate.com%22, null);%0A%09%09actual2 = new EmailAddress(%22user2%22, %22email2@corporate.com%22, null);%0A%09%09assertTrue(actual1.hashCode() != actual2.hashCode());%0A%09%09actual1 = new EmailAddress(%22user%22, null, null);%0A%09%09actual2 = new EmailAddress(%22user2%22, null, null);%0A%09%09assertTrue(actual1.hashCode() != actual2.hashCode());%0A%09%09actual1 = new EmailAddress(null, null, null);%0A%09%09actual2 = new EmailAddress(null, null, null
 );%0A%09%09ass

fix coverage