### Question:
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();  }### Answer:
@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()); }
@Test public void notEqualsNull() { EncryptorConfig encryptorConfig = new EncryptorConfig(); encryptorConfig.setType(EncryptorType.NACL); assertThat(encryptorConfig).isNotEqualTo(null); }
@Test public void differentTypesNotEqual() { EncryptorConfig encryptorConfig = new EncryptorConfig(); encryptorConfig.setType(EncryptorType.NACL); EncryptorConfig otherEncryptorConfig = new EncryptorConfig(); otherEncryptorConfig.setType(EncryptorType.EC); assertThat(encryptorConfig).isNotEqualTo(otherEncryptorConfig); }