@Test
public final void testValidDataStream() {

    ByteArray validBinLoc = null;
    try {
        validBinLoc = new ByteArray(new ByteArrayInputStream(
                VALID_BIN_DATA_POS_OFFSET_V2));
    } catch (IOException obe) {
        fail("Unexpected Exception during creation of ByteArray from "
                + "stream", obe);
    }
    try {
        RawLocationReference locRef = decodeData(validBinLoc);
        Lrp[] expectedLrps = new Lrp[]{Lrp.LINE_DEC_LRP1, Lrp.LINE_DEC_LRP2,
                Lrp.LINE_DEC_LRP3};
        Utils.checkDecodedLrps(locRef, expectedLrps);
        checkOffsetsV3(locRef.getOffsets(), EXPECTED_POS_OFFSET_V2,
                EXPECTED_NEG_OFFSET_V2);
    } catch (PhysicalFormatException e) {
        fail("failed on valid input", e);
    }
}