@Test
public void testCounterServiceWithOperationFilters() throws Throwable {

    Service counterService = createCounterService();
    OperationProcessingChain opProcessingChain = OperationProcessingChain.create(
            new OperationLogger());
    counterService.setOperationProcessingChain(opProcessingChain);
    for (int i = 0; i < COUNT; i++) {
        incrementCounter(false);
    }
    int counter = getCounter();
    assertEquals(COUNT, counter);
    this.host.setOperationTimeOutMicros(TimeUnit.MILLISECONDS.toMicros(250));
    opProcessingChain = OperationProcessingChain.create(
            new OperationLogger(),
            new OperationPatchDropper());
    counterService.setOperationProcessingChain(opProcessingChain);
    incrementCounter(true);
    counter = getCounter();
    assertEquals(COUNT, counter);
}