### Question:
Author extends AbstractNode { @Override public int hashCode() { final int prime = 31; int result = 1; result += prime * result + ((this.firstInitial == null) ? 0 : this.firstInitial.hashCode()); result += prime * result + ((this.lastName == null) ? 0 : this.lastName.hashCode()); return result; } Author(String rawAuthorText, int origin);  Author(String rawAuthorText, int origin, IncitesInstitutionLocationMap locationMap); void addInstitution(String institution); void addPublication(Publication publication); double getExpectedCitations(); @Override boolean equals(Object other); void format(); @Override CyNode getCyNode(); String getDepartment(); String getFirstInitial(); String getFirstName(); String getInstitution(); List<String> getInstitutions(); @Override String getLabel(); String getLastName(); String getLocation(); String getMainInstitution(); @Override Map<String, Object> getNodeAttrMap(); int getOrigin(); List<String> getPubList(); int getTimesCited(); boolean hasAlreadyBeenAdded(); @Override int hashCode(); boolean isIdentified(); void prioritizeInstitution(Author author, Author otherAuthor); void setAlreadyBeenAdded(boolean alreadyBeenAdded); @Override void setCyNode(CyNode cyNode); void setDepartment(String department); void setFirstInitial(String firstInitial); void setFirstName(String firstName); @Override void setLabel(String label); void setLastName(String lastName); void setLocation(String location); void setMainInstitution(String mainInstitution); void setMiddleInitial(String middleInitial); @Override void setNodeAttrMap(Map<String, Object> attrMap); void setOrigin(int origin); void setPubList(List<String> pubList); void setTimesCited(int timesCited); @Override String toString();  }### Answer:
@Test public void testUpperCaseHashCode() { Author author = new Author("somebody hm", Category.PUBMED); Author authorUpperCase = new Author("sOMeBODy H", Category.PUBMED); assertTrue(authorUpperCase.hashCode() == author.hashCode()); }
@Test public void testHashCode() { Author author1 = new Author("somebody h", Category.PUBMED); Author author2 = new Author("somebody hm", Category.PUBMED); assertTrue(author1.hashCode() == author2.hashCode()); }