import org.apache.harmony.jndi.provider.ldap.asn1.ASN1TestUtils;
import org.apache.harmony.jndi.provider.ldap.asn1.LdapASN1Constant;
public class LdapControlTest extends TestCase {
public void test_encodeValues_$LObject() {
LdapControl control = new LdapControl(new BasicControl("id", true,
new byte[10]));
ASN1TestUtils.checkEncode(control, LdapASN1Constant.Control);
//controlValue is optional, so it could be null
control = new LdapControl(new BasicControl("id2", false, null));
ASN1TestUtils.checkEncode(control, LdapASN1Constant.Control);
}