@Test
public void testLastLocationReferencePoint() throws OpenLRProtoException {

    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();
    openlr.LocationReferencePoint lrp = locationReferencePointDecoder.decode(locationReferencePoint, 3, true);
    assertNotNull(lrp);
    assertEquals(lrp.getSequenceNumber(), 3);
    assertEquals(lrp.getLongitudeDeg(), 2);
    assertEquals(lrp.getLatitudeDeg(), 51);
    assertEquals(lrp.getBearing(), 180);
    assertEquals(lrp.getFRC(), FunctionalRoadClass.FRC_4);
    assertEquals(lrp.getFOW(), FormOfWay.SINGLE_CARRIAGEWAY);
    assertEquals(lrp.isLastLRP(),true);
}