@Test public void twoOfSameTypeAndEmptyProperteisAreEqual() { EncryptorConfig encryptorConfig = new EncryptorConfig(); encryptorConfig.setType(EncryptorType.NACL); EncryptorConfig otherEncryptorConfig = new EncryptorConfig(); otherEncryptorConfig.setType(EncryptorType.NACL); assertThat(encryptorConfig).isEqualTo(otherEncryptorConfig); assertThat(encryptorConfig).isEqualTo(encryptorConfig); assertThat(encryptorConfig).isNotEqualTo(new HashMap()); }
public void setType(EncryptorType type) { this.type = type; }
EncryptorConfig { public void setType(EncryptorType type) { this.type = type; } }
EncryptorConfig { public void setType(EncryptorType type) { this.type = type; }  }
EncryptorConfig { public void setType(EncryptorType type) { this.type = type; }  EncryptorType getType(); void setType(EncryptorType type); Map<String, String> getProperties(); void setProperties(Map<String, String> properties); @Override int hashCode(); @Override boolean equals(Object obj); static EncryptorConfig getDefault(); }
EncryptorConfig { public void setType(EncryptorType type) { this.type = type; }  EncryptorType getType(); void setType(EncryptorType type); Map<String, String> getProperties(); void setProperties(Map<String, String> properties); @Override int hashCode(); @Override boolean equals(Object obj); static EncryptorConfig getDefault();  }