EntryChangeNotificationControl extends AbstractControl implements ResponseControl { @Override public void decode(final DERBuffer encoded) { final DERParser parser = new DERParser(); parser.registerHandler(ChangeTypeHandler.PATH, new ChangeTypeHandler(this)); parser.registerHandler(PreviousDnHandler.PATH, new PreviousDnHandler(this)); parser.registerHandler(ChangeNumberHandler.PATH, new ChangeNumberHandler(this)); parser.parse(encoded); } EntryChangeNotificationControl();  EntryChangeNotificationControl(final boolean critical);  EntryChangeNotificationControl(final PersistentSearchChangeType type);  EntryChangeNotificationControl(final PersistentSearchChangeType type, final boolean critical);  EntryChangeNotificationControl(final PersistentSearchChangeType type, final String dn, final long number);  EntryChangeNotificationControl(
    final PersistentSearchChangeType type,
    final String dn,
    final long number,
    final boolean critical); PersistentSearchChangeType getChangeType(); void setChangeType(final PersistentSearchChangeType type); String getPreviousDn(); void setPreviousDn(final String dn); long getChangeNumber(); void setChangeNumber(final long number); @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 EntryChangeNotificationControl expected) throws Exception { final EntryChangeNotificationControl actual = new EntryChangeNotificationControl(expected.getCriticality()); actual.decode(berValue); Assert.assertEquals(actual, expected); }