code:   public void testConstructor1()
           throws Exception
    {
      SimpleBindRequest bindRequest = new SimpleBindRequest();
      bindRequest = bindRequest.duplicate();
  
      assertNotNull(bindRequest.getBindDN());
      assertEquals(bindRequest.getBindDN(), "");
  
      assertNotNull(bindRequest.getPassword());
      assertEquals(bindRequest.getPassword().stringValue(), "");
  
      assertNotNull(bindRequest.getControls());
      assertEquals(bindRequest.getControls().length, 0);
  
      assertEquals(bindRequest.getBindType(), "SIMPLE");
  
      SimpleBindRequest rebindRequest =
           bindRequest.getRebindRequest(getTestHost(), getTestPort());
      assertNotNull(bindRequest.getRebindRequest(getTestHost(),
                                                 getTestPort()));
      assertEquals(rebindRequest.getBindDN(),
                   bindRequest.getBindDN());
      assertEquals(rebindRequest.getPassword(),
                   bindRequest.getPassword());
  
      assertEquals(bindRequest.getProtocolOpType(),
                   LDAPMessage.PROTOCOL_OP_TYPE_BIND_REQUEST);
  
      bindRequest.getLastMessageID();
  
      assertNotNull(bindRequest.encodeProtocolOp());
  
      assertNotNull(bindRequest.toString());
  
      final ArrayList<String> toCodeLines = new ArrayList<String>(10);
      bindRequest.toCode(toCodeLines, "foo", 0, false);
      assertFalse(toCodeLines.isEmpty());
  
      toCodeLines.clear();
      bindRequest.toCode(toCodeLines, "bar", 4, true);
      assertFalse(toCodeLines.isEmpty());
    }
  
  
  
    /**
     * Tests the second constructor, which takes a bind DN and password, using
     * non-null, non-empty values.
     *
     * @throws  Exception If an unexpected problem occurs.
     */
    @Test()
  