assertEquals(dn6.getLang(), "fr");
assertEquals(dn6.getDisplayName(), "�coutez!");
List<SecurityConstraint> scs = app.getSecurityConstraints();
assertEquals(scs.size(), 2);
SecurityConstraint sc1 = scs.get(0);
assertEquals(sc1.getUserDataConstraint().getTransportGuarantee(), UserDataConstraint.INTEGRAL);
DisplayName scdn1 = sc1.getDisplayName(new Locale("en"));
assertEquals(scdn1.getLang(), "en");
assertEquals(scdn1.getDisplayName(), "Integral Security Transport");
DisplayName scdn2 = sc1.getDisplayName(new Locale("fr"));
assertEquals(scdn2.getDisplayName(), "Transport Int�gral de S�curit�");
assertEquals(sc1.getPortletNames().get(0), "PortletOne");
assertEquals(sc1.getPortletNames().get(1), "PortletTwo");
assertEquals(sc1.getPortletNames().get(2), "PortletThree");
Description des1 = sc1.getUserDataConstraint().getDescription(new Locale("en"));
assertEquals(des1.getLang(), "en");
assertEquals(des1.getDescription(), "This is the Integral Security Transport");
Description des2 = sc1.getUserDataConstraint().getDescription(new Locale("fr"));
assertEquals(des2.getLang(), "fr");
assertEquals(des2.getDescription(), "Ceci est le Transport Int�gral de S�curit�");
SecurityConstraint sc2 = scs.get(1);
assertEquals(sc2.getUserDataConstraint().getTransportGuarantee(), UserDataConstraint.CONFIDENTIAL);
scdn1 = sc2.getDisplayName(new Locale("en"));
assertEquals(scdn1.getLang(), "en");
assertEquals(scdn1.getDisplayName(), "Confidential Security Transport");
scdn2 = sc2.getDisplayName(new Locale("fr"));
assertEquals(scdn2.getDisplayName(), "Transport Confidentiel de S�curit�");
assertEquals(sc2.getPortletNames().get(0), "PortletA");
assertEquals(sc2.getPortletNames().get(1), "PortletB");
des1 = sc2.getUserDataConstraint().getDescription(new Locale("en"));
assertEquals(des1.getLang(), "en");
assertEquals(des1.getDescription(), "This is the Confidential Security Transport");
des2 = sc2.getUserDataConstraint().getDescription(new Locale("fr"));
assertEquals(des2.getLang(), "fr");
assertEquals(des2.getDescription(), "Ceci est le Transport Confidentiel de S�curit�");
}