{
SimplePrincipal sp1 = new SimplePrincipal("sp1");
SimplePrincipal sp2 = new SimplePrincipal("sp2");
NestablePrincipal np = new NestablePrincipal("TestStack");
//Add principals to the NestablePrincipal
np.addMember(sp1);
np.addMember(sp2);
assertTrue("np.isMember(sp2)", np.isMember(sp2));
//Clone the NestablePrincipal
NestablePrincipal clonedNP = (NestablePrincipal)np.clone();