@Deprecated
    @Override
    public Beacon fromScanData(byte[] scanData, int rssi, BluetoothDevice device) {
        return fromScanData(scanData, rssi, device, System.currentTimeMillis(), new AltBeacon());
    }
@Test
    public void testParseWrongFormatReturnsNothing() {
        BeaconManager.setDebug(true);
        org.robolectric.shadows.ShadowLog.stream = System.err;
        LogManager.d("XXX", "testParseWrongFormatReturnsNothing start");
        byte[] bytes = hexStringToByteArray("02011a1aff1801ffff2f234454cf6d4a0fadf2f4911ba9ffa600010002c509");
        AltBeaconParser parser = new AltBeaconParser();
        Beacon beacon = parser.fromScanData(bytes, -55, null, 123456L);
        LogManager.d("XXX", "testParseWrongFormatReturnsNothing end");
        assertNull("Beacon should be null if not parsed successfully", beacon);
    }