ConfigurationHandlerRemove extends AbstractProcessor { @Override public Collection<Artifact> process(Collection<Artifact> intermediates) { Configuration config = context.getConfiguration(); removeArtifacts(intermediates, config); removeProprietaryArtifacts(intermediates, config); return intermediates; } ConfigurationHandlerRemove(AntennaContext context); @Override Collection<Artifact> process(Collection<Artifact> intermediates);  }
@Test public void test() { artifacts.add(artifact); handler.process(artifacts); assertThat(artifacts).isEmpty(); }
@Test public void testProprietary() { artifact.setFlag(Artifact.IS_PROPRIETARY_FLAG_KEY, true); artifacts.add(artifact); handler.process(artifacts); assertThat(artifacts).isEmpty(); }