@Test
public void testMissingLineAttributes() {

    Coordinates coordinates = Coordinates.newBuilder()
            .setLongitude(2)
            .setLatitude(51)
            .build();
    PathAttributes pathAttributes = PathAttributes.newBuilder()
            .setDistanceToNext(100)
            .setLowestFrcAlongPath(FRC.FRC_1)
            .build();
    LocationReferencePoint locationReferencePoint = LocationReferencePoint.newBuilder()
            .setCoordinates(coordinates)
            .setPathAttributes(pathAttributes)
            .build();
    try {
        locationReferencePointDecoder.decode(locationReferencePoint, 2, false);
    }
    catch (OpenLRProtoException e) {
        assertEquals(e.getErrorCode(), OpenLRProtoStatusCode.INVALID_LOCATION_REFERENCE);
    }
}