@Test
public final void testnotConnectedLocation() {

    List<LocationReferenceHolder> locationRef = null;
    try {
        OpenLREncoder encoder = new OpenLREncoder();
        OpenLREncoderParameter params = new OpenLREncoderParameter.Builder().with(td.getMapDatabase()).with(td.getConfiguration()).buildParameter();
        locationRef = encoder.encodeLocations(params,
                Arrays.asList(td.getNotConnectedLocation()));
        assertFalse(locationRef.get(0).isValid());
    } catch (OpenLRProcessingException e) {
        fail("Encoding location failed with exception: " + e.getErrorCode(),
                e);
    }
}