Leader { public String getRole() { return this.role; } Leader(String role, String id); String getRole(); String getId(); boolean isCandidate(Candidate candidate); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void shouldGetRole() { assertThat(this.leader.getRole()).isEqualTo(ROLE); }