PeerProperties { @Override public String toString() { return "[" + mBluetoothMacAddress + ((mExtraInformation == NO_EXTRA_INFORMATION) ? "]" : (" " + mExtraInformation + "]")); } PeerProperties(String bluetoothMacAddress);  PeerProperties(String serviceType, String deviceName, String deviceAddress);  PeerProperties(String bluetoothMacAddress, int extraInformation); String getId(); String getBluetoothMacAddress(); String getDeviceName(); String getDeviceAddress(); int getExtraInformation(); void copyFrom(PeerProperties sourcePeerProperties); boolean isValid(); boolean hasMoreInformation(PeerProperties otherPeerProperties); static boolean copyMissingValuesFromOldPeer(
            PeerProperties oldPeerProperties, PeerProperties newPeerProperties); @Override boolean equals(Object otherPeerProperties); @Override String toString(); static final String BLUETOOTH_MAC_ADDRESS_UNKNOWN; static final int NO_EXTRA_INFORMATION; }
@Test public void testToString() { assertThat(bluetoothPeerProperties.toString(), is(equalTo("[" + TEST_MAC + " " + TEST_EXTRA_INFO + "]"))); assertThat(new PeerProperties(TEST_MAC).toString(), is(equalTo("[" + TEST_MAC + "]"))); }