### Question:
MillenniumDomainPasswordCredential implements Serializable { public String getPassword() { return password; } MillenniumDomainPasswordCredential(final String password); String getPassword();  }### Answer:
@Test public void testGetPassword() { assertThat(credential.getPassword()).isEqualTo(password); }
@Test public void testSerialization() throws Exception { assertThat(((MillenniumDomainPasswordCredential) SerializationUtils .deserialize(SerializationUtils.serialize(credential))).getPassword()).isEqualTo(password); }