DivElement root = renderer.getRoot(docDiv);
SpanElement nameSpan = renderer.getNameSpan(docDiv);
// remove nameSpan
nameSpan.removeFromParent();
try {
renderer.getNameSpan(docDiv);
fail("Expected IllegalStateException because nameSpan was removed");
} catch (IllegalStateException e) {
// In dev mode this is different from not being attached