@Test
public final void testPOIWithAccesNotConnected() {

    Location decLocRef;
    String id = "notConnectedPAL";
    InputStream properties = null;
    try {
        properties = new FileInputStream(DECODER_PROPERTIES);
    } catch (IOException e) {
        fail("Error creating properties stream.", e);
    }
    try {
        OpenLRDecoder decoder = new OpenLRDecoder();
        OpenLRDecoderParameter parameter = new OpenLRDecoderParameter.Builder()
                .with(mockedMapDB)
                .with(OpenLRPropertiesReader.loadPropertiesFromStream(
                        properties, true)).buildParameter();
        decLocRef = decoder.decodeRaw(parameter, td.getNotConnectedPWA());
        assertFalse(decLocRef.isValid());
        assertEquals(decLocRef.getReturnCode().getID(),
                DecoderReturnCode.NO_ROUTE_FOUND.getID());
        assertNotNull(decLocRef.toString());
        assertEquals(decLocRef.getID(), id);
    } catch (OpenLRProcessingException e) {
        fail("Decoding location failed with exception: " + e.getErrorCode(),
                e);
    }
}