VirtualListViewResponseControl extends AbstractControl implements ResponseControl { @Override public void decode(final DERBuffer encoded) { final DERParser parser = new DERParser(); parser.registerHandler(TargetPositionHandler.PATH, new TargetPositionHandler(this)); parser.registerHandler(ContentCountHandler.PATH, new ContentCountHandler(this)); parser.registerHandler(ViewResultHandler.PATH, new ViewResultHandler(this)); parser.registerHandler(ContextIDHandler.PATH, new ContextIDHandler(this)); parser.parse(encoded); } VirtualListViewResponseControl();  VirtualListViewResponseControl(final boolean critical);  VirtualListViewResponseControl(
    final int position,
    final int count,
    final ResultCode code,
    final byte[] context);  VirtualListViewResponseControl(
    final int position,
    final int count,
    final ResultCode code,
    final byte[] context,
    final boolean critical); int getTargetPosition(); void setTargetPosition(final int position); int getContentCount(); void setContentCount(final int count); ResultCode getViewResult(); void setViewResult(final ResultCode code); byte[] getContextID(); void setContextID(final byte[] id); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); @Override void decode(final DERBuffer encoded); static final String OID; }
@Test(groups = "control", dataProvider = "response") public void decode(final DERBuffer berValue, final VirtualListViewResponseControl expected) throws Exception { final VirtualListViewResponseControl actual = new VirtualListViewResponseControl(expected.getCriticality()); actual.decode(berValue); Assert.assertEquals(actual, expected); }