public void testRegisterUnregister() throws Exception {
WirePostProcessorRegistry registry = new WirePostProcessorRegistryImpl();
OutboundWire owire = EasyMock.createMock(OutboundWire.class);
InboundWire iwire = EasyMock.createMock(InboundWire.class);
WirePostProcessor processor = createMock(WirePostProcessor.class);
processor.process(EasyMock.eq(owire), EasyMock.eq(iwire));
EasyMock.replay(processor);
registry.register(processor);
registry.process(owire, iwire);
registry.unregister(processor);
registry.process(owire, iwire);