@Test public void processes() { XmlEventProcessorTester test = XmlEventProcessorTester.test(new FilterXmlEventProcessor()); MockitoAnnotations.initMocks(test); test.given(eventIsOfType(XMLStreamConstants.ENTITY_REFERENCE)) .when(process()) .then(eventProcessed()); }
@Override public ImmutableList<XMLEvent> process(String id, XMLEvent event) { Preconditions.checkNotNull(event); return ImmutableList.of(event); }
FilterXmlEventProcessor implements XmlEventProcessor { @Override public ImmutableList<XMLEvent> process(String id, XMLEvent event) { Preconditions.checkNotNull(event); return ImmutableList.of(event); } }
FilterXmlEventProcessor implements XmlEventProcessor { @Override public ImmutableList<XMLEvent> process(String id, XMLEvent event) { Preconditions.checkNotNull(event); return ImmutableList.of(event); }  }
FilterXmlEventProcessor implements XmlEventProcessor { @Override public ImmutableList<XMLEvent> process(String id, XMLEvent event) { Preconditions.checkNotNull(event); return ImmutableList.of(event); }  @Override boolean accepts(XMLEvent event); @Override ImmutableList<XMLEvent> process(String id, XMLEvent event); }
FilterXmlEventProcessor implements XmlEventProcessor { @Override public ImmutableList<XMLEvent> process(String id, XMLEvent event) { Preconditions.checkNotNull(event); return ImmutableList.of(event); }  @Override boolean accepts(XMLEvent event); @Override ImmutableList<XMLEvent> process(String id, XMLEvent event);  }