NotFilter implements FilterSet { @Override public DEREncoder getEncoder() { return new ConstructedDEREncoder( new ContextDERTag(Type.NOT.ordinal(), true), filterComponent.getEncoder()); } NotFilter();  NotFilter(final Filter component); @Override Type getType(); @Override void add(final Filter component); @Override DEREncoder getEncoder(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }
@Test(dataProvider = "component") public void encode(final NotFilter filter, final byte[] berValue) throws Exception { Assert.assertEquals(filter.getEncoder().encode(), berValue); }