*/
@Test
public void testHashCode() throws URISyntaxException
{
final Contributor contributor1 = new Contributor("AUTHOR", "EMAIL",
new URI("WEBSITE"), "TOOL", "COMMENTS", "COPYRIGHT", new URI(
"SOURCE"));
final Contributor contributor2 = new Contributor("AUTHOR", "EMAIL",
new URI("WEBSITE"), "TOOL", "COMMENTS", "COPYRIGHT", new URI(
"SOURCE"));
assertEquals(contributor1.hashCode(), contributor2.hashCode());
assertThat(contributor1.hashCode(), not(new Contributor("AUTHOR2",
"EMAIL", new URI("WEBSITE"), "TOOL", "COMMENTS", "COPYRIGHT",
new URI("SOURCE")).hashCode()));
assertThat(contributor1.hashCode(), not(new Contributor("AUTHOR",
"EMAIL2", new URI("WEBSITE"), "TOOL", "COMMENTS", "COPYRIGHT",
new URI("SOURCE")).hashCode()));
assertThat(contributor1.hashCode(), not(new Contributor("AUTHOR",
"EMAIL", new URI("WEBSITE2"), "TOOL", "COMMENTS", "COPYRIGHT",
new URI("SOURCE")).hashCode()));
assertThat(contributor1.hashCode(), not(new Contributor("AUTHOR",
"EMAIL", new URI("WEBSITE"), "TOOL2", "COMMENTS", "COPYRIGHT",
new URI("SOURCE")).hashCode()));
assertThat(contributor1.hashCode(), not(new Contributor("AUTHOR",
"EMAIL", new URI("WEBSITE"), "TOOL", "COMMENTS2", "COPYRIGHT",
new URI("SOURCE")).hashCode()));
assertThat(contributor1.hashCode(), not(new Contributor("AUTHOR",
"EMAIL", new URI("WEBSITE"), "TOOL", "COMMENTS", "COPYRIGHT2",
new URI("SOURCE")).hashCode()));
assertThat(contributor1.hashCode(), not(new Contributor("AUTHOR",
"EMAIL", new URI("WEBSITE"), "TOOL", "COMMENTS", "COPYRIGHT",
new URI("SOURCE2")).hashCode()));
assertThat(contributor1.hashCode(), not(new Contributor(null, "EMAIL",
new URI("WEBSITE"), "TOOL", "COMMENTS", "COPYRIGHT", new URI(
"SOURCE")).hashCode()));
assertThat(contributor1.hashCode(), not(new Contributor("AUTHOR", null,
new URI("WEBSITE"), "TOOL", "COMMENTS", "COPYRIGHT", new URI(
"SOURCE")).hashCode()));
assertThat(contributor1.hashCode(),
not(new Contributor("AUTHOR", "EMAIL", null, "TOOL", "COMMENTS",
"COPYRIGHT", new URI("SOURCE")).hashCode()));
assertThat(contributor1.hashCode(), not(new Contributor("AUTHOR",
"EMAIL", new URI("WEBSITE"), null, "COMMENTS", "COPYRIGHT",
new URI("SOURCE")).hashCode()));
assertThat(contributor1.hashCode(), not(new Contributor("AUTHOR",
"EMAIL", new URI("WEBSITE"), "TOOL", null, "COPYRIGHT", new URI(
"SOURCE")).hashCode()));
assertThat(contributor1.hashCode(), not(new Contributor("AUTHOR",
"EMAIL", new URI("WEBSITE"), "TOOL", "COMMENTS", null, new URI(
"SOURCE")).hashCode()));
assertThat(contributor1.hashCode(),
not(new Contributor("AUTHOR", "EMAIL", new URI("WEBSITE"), "TOOL",
"COMMENTS", "COPYRIGHT", null).hashCode()));
}