### Question:
AltBeacon extends Beacon { public int getMfgReserved() { return mDataFields.get(0).intValue(); } protected  AltBeacon(Beacon beacon); protected  AltBeacon(); protected  AltBeacon(Parcel in); int getMfgReserved(); @Override int describeContents(); @Override void writeToParcel(Parcel out, int flags); static final Parcelable.Creator<AltBeacon> CREATOR; }### Answer:
@Test public void testRecognizeBeacon() { byte[] bytes = hexStringToByteArray("02011a1bff1801beac2f234454cf6d4a0fadf2f4911ba9ffa600010002c509"); AltBeaconParser parser = new AltBeaconParser(); Beacon beacon = parser.fromScanData(bytes, -55, null, 123456L); assertEquals("manData should be parsed", 9, ((AltBeacon) beacon).getMfgReserved() ); }