AuxUserUser { @Override public String toString() { return userAndUser2; } AuxUserUser(String user, String user2);  AuxUserUser(String userLogin, String userMail, String userLogin2, String userMail2); String getUser(); String getUser2(); String toStringUserAndUser2(); String toStringUser2AndUser(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }
@Test public void testToString() { assertEquals("User1;User2", instance.toStringUserAndUser2()); assertEquals("User2;User1", instance.toStringUser2AndUser()); assertEquals("User1;User2", instance.toString()); }