### Question:
AutoDetectUserLoginConfiguration { public void setPassword(char[] password) { this.password= cryptoAccess.seal(password); }  void setUser(char[] user); char[] getUser(); void setPassword(char[] password); char[] getPassword();  }### Answer:
@Test public void when_passwort_set_ensure_password_field_is_a_sealed_object() { config.setPassword("a".toCharArray()); assertTrue(config.password instanceof SealedObject); }
@Test public void encrypted_password_set_get_works() { config.setPassword("abcdefgh$_ü".toCharArray()); assertEquals("abcdefgh$_ü",new String(config.getPassword())); }