@Test
public void shouldLogParserErrors() {

    assertThatExceptionOfType(ParserException.class)
        .isThrownBy(() -> new ApiModelBuilder().buildApiModel("raml/syntaxError.raml"))
        .withMessageContaining("RAML syntax errors")
        .withMessageContaining("/types/City/properties/population/type")
        .withMessageContaining("Invalid reference 'int'");
}