WilmaHttpResponseProcessor { public boolean containsProcessor(final WilmaEntityProcessorInterface processor) { return processors.contains(processor); }  synchronized void processResponse(final WilmaHttpResponse response); void disableProcessor(final ProcessorBase processor); void enableProcessor(final ProcessorBase processor); boolean isProcessorEnabled(final ProcessorBase processor); void addProcessor(final ProcessorBase processor); boolean containsProcessor(final WilmaEntityProcessorInterface processor); void setProcessors(final List<ProcessorBase> processors);  }
@Test public void testContainsProcessorShouldReturnTrueWhenProcessorIsInList() { boolean actual = underTest.containsProcessor(responseProcessor); assertTrue(actual); }
@Test public void testContainsProcessorShouldReturnFalseWhenProcessorIsNotInList() { processors.remove(0); boolean actual = underTest.containsProcessor(responseProcessor); assertFalse(actual); }