- thrown.expect(VerifyException.class);
- nnToXml(normalizedNodeContext, "<not-existing>value</not-existing>",
- "<lfLfrefNegative>value</lfLfrefnegative>");
+ final IOException ex = assertThrows(IOException.class, () -> nnToXml(normalizedNodeContext,
+ "<not-existing>value</not-existing>", "<lfLfrefNegative>value</lfLfrefnegative>"));
+ final Throwable rootCause = Throwables.getRootCause(ex);
+ assertThat(rootCause, instanceOf(IllegalArgumentException.class));
+ assertEquals("Data tree child (basic:module?revision=2013-12-02)not-existing not present",
+ rootCause.getMessage());