public void testRSAPublicKeyFromElement() throws Exception {
Document doc = loadXML("DEREncodedKeyValue-RSA.xml");
NodeList nl = doc.getElementsByTagNameNS(Constants.SignatureSpec11NS, Constants._TAG_DERENCODEDKEYVALUE);
Element element = (Element) nl.item(0);
DEREncodedKeyValue derEncodedKeyValue = new DEREncodedKeyValue(element, "");
assertEquals(rsaKeyControl, derEncodedKeyValue.getPublicKey());
assertArrayEquals(rsaKeyControl.getEncoded(), derEncodedKeyValue.getBytesFromTextChild());
assertEquals(idControl, derEncodedKeyValue.getId());
}