/** Test of listenUsingInsecureRfcommWithServiceRecord method. */
  @Test
  public void testListenUsingInsecureRfcommWithServiceRecord() {
    try {
      System.out.println("ListenUsingInsecureRfcommWithServiceRecord");

      /* Get the adapter */
      BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();

      /* New server socket, inputs are null as they are not used in the implementation */
      BluetoothServerSocket tmp =
          mBluetoothAdapter.listenUsingInsecureRfcommWithServiceRecord(null, null);

      assert (tmp != null);

    } catch (IOException ex) {
      Logger.getLogger(BluetoothAdapterTest.class.getName()).log(Level.SEVERE, null, ex);
    }
  }