- when(connectionContext.getOutboundQueueProvider()).thenReturn(outboundQueueProvider);
- when(features.getVersion()).thenReturn(OF_VERSION);
- when(features.getDatapathId()).thenReturn(DATAPATH_ID);
+ lenient().when(connectionContext.getOutboundQueueProvider()).thenReturn(outboundQueueProvider);
+ lenient().when(features.getVersion()).thenReturn(OF_VERSION);
+ lenient().when(features.getDatapathId()).thenReturn(DATAPATH_ID);
+ multipartWriterProvider = MultipartWriterProviderFactory.createDefaultProvider(deviceContext);