- assertNotNull(rootAttributes);
- assertEquals("Superuser",
- rootAttributes.get(LdapAttrs.description.name()).get());
- byte[] rawPwEntry = (byte[]) rootAttributes.get(
- LdapAttrs.userPassword.name()).get();
- assertEquals("{SHA}ieSV55Qc+eQOaYDRSha/AjzNTJE=",
- new String(rawPwEntry));
+ assert rootAttributes != null;
+ assert "Superuser".equals(rootAttributes.get(LdapAttrs.description.name()).get());
+ byte[] rawPwEntry = (byte[]) rootAttributes.get(LdapAttrs.userPassword.name()).get();
+ assert "{SHA}ieSV55Qc+eQOaYDRSha/AjzNTJE=".contentEquals(new String(rawPwEntry));