Also, reading Aldrin’s response and assuming you are using Test mocks I would probably recommend to not use them for tests that require full lifecycle test of the component until we actually improve it. Instead you can code straight agains FlowController essentially executing as a full blown NiFi minus UI. Here is an example: https://github.com/apache/nifi/pull/210/files#diff-7be646c38c5447f7824e444343633829R92
Cheers Oleg On Feb 28, 2016, at 11:07 AM, Oleg Zhurakousky <ozhurakou...@hortonworks.com<mailto:ozhurakou...@hortonworks.com>> wrote: Pierre Can you paste the method definition? Just want to look at the signature and see if there is something obvious Sent from my iPhone On Feb 28, 2016, at 10:26, Pierre Villard <pierre.villard...@gmail.com<mailto:pierre.villard...@gmail.com>> wrote: Hi, I am working on SNMP processors [1] and I'm almost ready for a PR... but I have an issue I can't explain. In my processors, I have implemented a method close() with the @OnStopped annotation but it seems the annotation is not seen. When debugging and stopping my processor, I correctly go through quietlyInvokeMethodsWithAnnotations() in ReflectionUtils and my method close() appears without any annotation. I guess I am missing something simple. Any idea? [1] https://issues.apache.org/jira/browse/NIFI-1537