ExternalResourceDescriptor firstChild = children.get(0);
assertNotNull("QUERY ExternalResourceDescriptor parent first child", firstChild);
assertSame("QUERY ExternalResourceDescriptor parent first child", desc, firstChild);
Frame frame = desc.getFrame();
assertNotNull("QUERY ExternalResourceDescriptor frame", frame);
Operation op = frame.getOperation();
assertNotNull("QUERY ExternalResourceDescriptor frame operation", frame);
String sql = oSql != null ? oSql : op.get("sql", String.class);
assertEquals("QUERY ExternalResourceDescriptor label", sql, desc.getLabel());