assertEquals(uriControl, keyInfoReference.getURI());
}
@org.junit.Test
public void testId() throws Exception {
KeyInfoReference keyInfoReference = new KeyInfoReference(documentBuilder.newDocument(), uriControl);
assertEquals("", keyInfoReference.getId());
assertNull(keyInfoReference.getElement().getAttributeNodeNS(null, Constants._ATT_ID));
keyInfoReference.setId(idControl);
assertEquals(idControl, keyInfoReference.getId());
assertTrue(keyInfoReference.getElement().getAttributeNodeNS(null, Constants._ATT_ID).isId());
keyInfoReference.setId(null);
assertEquals("", keyInfoReference.getId());
assertNull(keyInfoReference.getElement().getAttributeNodeNS(null, Constants._ATT_ID));
}