@Test
public void readUntilStartElementTest() throws XMLStreamException {

    readUntilStartElementTest("/a", "a");
    readUntilStartElementTest("/a/b/c", "c");
    readUntilStartElementTest("/a/d", "d");
    readUntilStartElementNotFoundTest("/a/e", "a");
    readUntilStartElementNotFoundTest("/a/b/a", "b");
    try {
        readUntilStartElementTest("/b", null);
    } catch (PowsyblException e) {
        assertEquals("Unable to find b: end of document has been reached", e.getMessage());
    }
}