@Test
    public void testConstructorAndGetter() {
        String message = "my error message";
        error = new ParserError(5, message);

        assertEquals(5, error.getLineIndex());
        assertEquals(message, error.getMessage());
    }