237238239240241242243244245246247
StringReader in = new StringReader(dgs); try { source.readAll(in); assertNotNull(g.getNode("A")); g.clear(); } catch (IOException e) { if (e.getCause() instanceof ParseException) fail(); else throw e;