### Question:
DatawaveUsersRolesLoginModule extends UsersRolesLoginModule { protected static String normalizeUsername(String username) { StringBuilder result = new StringBuilder(); String[] splitDns = DnUtils.splitProxiedSubjectIssuerDNs(username); for (int i = 0; i < splitDns.length; i++) { if (i > 0) { result.append("<"); result.append(DnUtils.normalizeDN(splitDns[i])); result.append(">"); } else { result.append(DnUtils.normalizeDN(splitDns[i])); } } return result.toString(); } DatawaveUsersRolesLoginModule(); @Override boolean login();  }### Answer:
@Test public void normalizeDnWithCnLast() { assertEquals(NORMALIZED_SUBJECT_DN, DatawaveUsersRolesLoginModule.normalizeUsername(SUBJECT_DN_WITH_CN_LAST)); }
@Test public void normalizeDnWithCnFirst() { assertEquals(NORMALIZED_SUBJECT_DN, DatawaveUsersRolesLoginModule.normalizeUsername(SUBJECT_DN_WITH_CN_FIRST)); }
@Test public void normalizeSubjectIssuerCombinations() { assertEquals(NORMALIZED_SUBJECT_DN_WITH_ISSUER_DN, DatawaveUsersRolesLoginModule.normalizeUsername(SUBJECT_DN_WITH_CN_FIRST + "<" + ISSUER_DN_WITH_CN_FIRST + ">")); assertEquals(NORMALIZED_SUBJECT_DN_WITH_ISSUER_DN, DatawaveUsersRolesLoginModule.normalizeUsername(SUBJECT_DN_WITH_CN_FIRST + "<" + ISSUER_DN_WITH_CN_LAST + ">")); assertEquals(NORMALIZED_SUBJECT_DN_WITH_ISSUER_DN, DatawaveUsersRolesLoginModule.normalizeUsername(SUBJECT_DN_WITH_CN_LAST + "<" + ISSUER_DN_WITH_CN_FIRST + ">")); assertEquals(NORMALIZED_SUBJECT_DN_WITH_ISSUER_DN, DatawaveUsersRolesLoginModule.normalizeUsername(SUBJECT_DN_WITH_CN_LAST + "<" + ISSUER_DN_WITH_CN_LAST + ">")); }