### Question:
VerifyNameControl extends AbstractControl implements RequestControl { @Override public byte[] encode() { final ConstructedDEREncoder se = new ConstructedDEREncoder( UniversalDERTag.SEQ, new IntegerType(0), new OctetStringType(serverName)); return se.encode(); } VerifyNameControl();  VerifyNameControl(final String name);  VerifyNameControl(final String name, final boolean critical); @Override boolean hasValue(); String getServerName(); void setServerName(final String name); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); @Override byte[] encode(); static final String OID; }### Answer:
@Test(groups = "control", dataProvider = "request") public void encode(final byte[] berValue, final VerifyNameControl expected) throws Exception { Assert.assertEquals(expected.encode(), berValue); }