@Test
public final void testEmptyLocation() {

    try {
        LocationReferenceHolder encLocRef = encodeLocation(td
                .getEmptyLocation());
        assertFalse(encLocRef.isValid());
        assertEquals(encLocRef.getReturnCode(),
                EncoderReturnCode.LOCATION_IS_EMPTY);
    } catch (Exception e) {
        fail("Wrong error detected: " + e.getMessage());
    }
}