@Test
public final void testMissingLastLrpLocation() {

    OpenLRXMLDecoder dec = new OpenLRXMLDecoder();
    try {
        LocationReference lr = new LocationReferenceXmlImpl("", missingLastLrp, 1);
        RawLocationReference ref = dec.decodeData(lr);
        assertFalse(ref.isValid());
        assertEquals(ref.getLocationType(), LocationType.LINE_LOCATION);
        assertSame(ref.getReturnCode(), XmlReturnCode.NO_LAST_LRP_FOUND);
        assertNull(ref.getGeoCoordinates());
        assertNull(ref.getLocationReferencePoints());
        assertNull(ref.getOffsets());
        assertNull(ref.getOrientation());
        assertNull(ref.getSideOfRoad());
    } catch (PhysicalFormatException e) {
        fail("Unexpected exception!", e);
    }
}