ProxyAuthorizationControl extends AbstractControl implements RequestControl { @Override public byte[] encode() { return getAuthorizationId() != null ? OctetStringType.toBytes(getAuthorizationId()) : EMPTY_AUTHZ; } ProxyAuthorizationControl();  ProxyAuthorizationControl(final String id); @Override boolean hasValue(); String getAuthorizationId(); void setAuthorizationId(final String id); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); @Override byte[] encode(); static final String OID; }
@Test(groups = "control", dataProvider = "request") public void decode(final byte[] berValue, final ProxyAuthorizationControl expected) throws Exception { Assert.assertEquals(expected.encode(), berValue); }