@Test
public void testEncodeLastLocationReferencePoint() {

    LocationReferencePointProtoImpl locationReferencePoint = new LocationReferencePointProtoImpl(
            2,
            5.6,
            53.6,
            165,
            FunctionalRoadClass.FRC_4,
            FormOfWay.MULTIPLE_CARRIAGEWAY);
    LocationReferencePoint lrp = locationReferencePointEncoder.encode(locationReferencePoint);
    assertNotNull(lrp);
    assertTrue(lrp.hasCoordinates());
    assertTrue(lrp.hasLineAttributes());
    assertFalse(lrp.hasPathAttributes());
    Coordinates coordinates = lrp.getCoordinates();
    assertEquals(coordinates.getLongitude(), 5.6);
    assertEquals(coordinates.getLatitude(), 53.6);
    LineAttributes lineAttributes = lrp.getLineAttributes();
    assertEquals(lineAttributes.getBearing(), 165);
    assertEquals(lineAttributes.getFrc(), FRC.FRC_4);
    assertEquals(lineAttributes.getFow(), FOW.FOW_MULTIPLE_CARRIAGEWAY);
}