@Test
public void testMissingPathAttributes() {

    Coordinates coordinates = Coordinates.newBuilder()
            .setLongitude(2)
            .setLatitude(51)
            .build();
    LineAttributes lineAttributes = LineAttributes.newBuilder()
            .setBearing(180)
            .setFrc(FRC.FRC_4)
            .setFow(FOW.FOW_SINGLE_CARRIAGEWAY)
            .build();
    LocationReferencePoint locationReferencePoint = LocationReferencePoint.newBuilder()
            .setCoordinates(coordinates)
            .setLineAttributes(lineAttributes)
            .build();
    try {
        locationReferencePointDecoder.decode(locationReferencePoint, 1, false);
        fail();
    }
    catch (OpenLRProtoException e) {
        assertEquals(e.getErrorCode(), OpenLRProtoStatusCode.INVALID_LOCATION_REFERENCE);
    }
}