@Test
public final void testValidWithNoOffsets() {

    LocationReference ref = null;
    ref = BINARY_ENCODER.encodeData(lineLocRefValidOffset0);
    assertTrue(ref.isValid());
    if (!"binary".equals(ref.getDataIdentifier())) {
        fail("Invalid data identifier");
    }
    if (!checkDataClass(ref)) {
        fail("invalid data class");
    }
    assertSame(ref.getVersion(),
            OpenLRBinaryConstants.LATEST_BINARY_VERSION);
    Utils.checkBinData((ByteArray) ref.getLocationReferenceData(),
            DATA_VALID_NO_OFFSETS_V3,
            OpenLRBinaryConstants.LATEST_BINARY_VERSION);
}