+ @Override
+ @Before
+ public void setUp() throws Exception {
+ super.setUp();
+
+ SimplePCEPExtensionProviderContext extContext = new SimplePCEPExtensionProviderContext();
+ setupMockService(PCEPExtensionProviderContext.class, extContext);
+ BasePCEPSessionProposalFactory proposalFactory = new BasePCEPSessionProposalFactory(120, 30,
+ Arrays.asList(new PCEPStatefulCapability(true, true, true, true, true, true, true)));
+ setupMockService(PCEPSessionProposalFactory.class, proposalFactory);
+ NioEventLoopGroup eventLoopGroup = new NioEventLoopGroup();
+ setupMockService(PCEPDispatcher.class, new PCEPDispatcherImpl(extContext.getMessageHandlerRegistry(),
+ new DefaultPCEPSessionNegotiatorFactory(proposalFactory, 5), eventLoopGroup, eventLoopGroup));
+ }
+