@Test
public void testLocationReferencePoint() throws OpenLRProtoException {

    Coordinates coordinates = Coordinates.newBuilder()
            .setLongitude(5)
            .setLatitude(52)
            .build();
    LineAttributes lineAttributes = LineAttributes.newBuilder()
            .setBearing(90)
            .setFrc(FRC.FRC_0)
            .setFow(FOW.FOW_MOTORWAY)
            .build();
    PathAttributes pathAttributes = PathAttributes.newBuilder()
            .setDistanceToNext(100)
            .setLowestFrcAlongPath(FRC.FRC_1)
            .build();
    LocationReferencePoint locationReferencePoint = LocationReferencePoint.newBuilder()
            .setCoordinates(coordinates)
            .setLineAttributes(lineAttributes)
            .setPathAttributes(pathAttributes)
            .build();
    openlr.LocationReferencePoint lrp = locationReferencePointDecoder.decode(locationReferencePoint, 1, false);
    assertNotNull(lrp);
    assertEquals(lrp.getSequenceNumber(), 1);
    assertEquals(lrp.getLongitudeDeg(),5);
    assertEquals(lrp.getLatitudeDeg(), 52);
    assertEquals(lrp.getBearing(), 90);
    assertEquals(lrp.getFRC(), FunctionalRoadClass.FRC_0);
    assertEquals(lrp.getFOW(), FormOfWay.MOTORWAY);
    assertEquals(lrp.getDistanceToNext(), 100);
    assertEquals(lrp.getLfrc(), FunctionalRoadClass.FRC_1);
    assertEquals(lrp.isLastLRP(), false);
}