public RxBleScanRecordMock build() throws UnsupportedEncodingException, IllegalArgumentException {
            return new RxBleScanRecordMock(
                    advertiseFlags,
                    serviceUuids,
                    serviceSolicitationUuids,
                    manufacturerSpecificData,
                    serviceData,
                    txPowerLevel,
                    deviceName,
                    requireLegacyDataLength
            );
        }
Build {@link RxBleScanRecordMock}.

@throws UnsupportedEncodingException If the device name could not be encoded
@throws IllegalArgumentException     If the data could not fit in legacy packets
mockrxandroidble/src/main/java/com/polidea/rxandroidble2/mockrxandroidble/RxBleScanRecordMock.java