Node { public short getProtocolVersion(){ return mAdvertise.getProtocolVersion(); } @Deprecated  Node(BluetoothDevice device, int rssi, byte[] advertise);  Node(BluetoothDevice device, int rssi, @NonNull BleAdvertiseInfo advertiseInfo);  Node(byte[] advertise); boolean isExportingFeature(Class<? extends Feature> featureClass); @NonNull BleAdvertiseInfo getAdvertiseInfo(); BluetoothDevice getDevice(); ConnectionOption getConnectionOption(); void enableNodeServer(Map<FeatureCoordinate, Class<? extends ExportedFeature>> exportedFeature); @Nullable NodeServer getNodeServer(); @Deprecated void upDateAdvertising(byte[] advertise); void upDateAdvertising(@NonNull BleAdvertiseInfo updateInfo); void connect(Context c); @Deprecated void connect(Context c,boolean resetCache); @Deprecated void connect(Context c,boolean resetCache,
                        @Nullable Map<UUID,List<Class< ? extends Feature>>> userDefineFeature); void connect(Context c, ConnectionOption options); void addExternalCharacteristics(@Nullable Map<UUID,List<Class< ? extends Feature>>>
                                                   userDefineFeature); void disconnect(); Type getType(); boolean isSleeping(); boolean hasGeneralPurpose(); byte getTypeId(); boolean isConnected(); String getTag(); State getState(); String getName(); String getFriendlyName(); short getProtocolVersion(); List<Feature> getFeatures(); @NonNull List<T> getFeatures(Class<T> type); @Nullable T getFeature(Class<T> type); void addNodeStateListener(NodeStateListener listener); void removeNodeStateListener(NodeStateListener listener); boolean readFeature(Feature feature); boolean writeQueueIsEmpty(); boolean disableNotification(Feature feature); boolean enableNotification(Feature feature); boolean isEnableNotification(Feature feature); boolean writeFeatureData(Feature feature, byte[] data); boolean writeFeatureData(Feature feature, byte[] data,@Nullable Runnable onWriteComplete); @Override boolean equals(Object node); int getTxPowerLevel(); int getLastRssi(); void readRssi(); Date getLastRssiUpdateDate(); void addBleConnectionParamListener(BleConnectionParamUpdateListener listener); void removeBleConnectionParamListener(BleConnectionParamUpdateListener listener); @Nullable Debug getDebug(); @Nullable ConfigControl getConfigRegister(); long getAdvertiseBitMask(); int getLastMtu(); boolean requestNewMtu(final int newMtu); boolean requestLowerConnectionInterval(); boolean requestNormalConnectionInterval();  }
@Test public void getProtocolVersion(){ Assert.assertEquals(1,createNode(null).getProtocolVersion()); }