LldpFlowManager extends AbstractFlowManager implements TopologyListener { @Override void pushFlow(NodeId nodeId, FlowAction flowAction) { FlowBuilder flowBuilder = createLldpReplyToControllerFlow(); super.writeDataTransaction(nodeId, flowBuilder, flowAction); } LldpFlowManager(final DataBroker dataBroker,
                    final PipelineManager pipelineManager,
                    final NetworkEventsService networkEventsService); void start(); @Override void onSwitchAdd(NodeId switchAdded); @Override void onSwitchRemoved(NodeId switchRemoved);  }
@Ignore @Test public void testPushFlow() throws Exception { MemberModifier.suppress(MemberMatcher.method(LldpFlowManager.class, "writeDataTransaction", NodeId.class, FlowBuilder.class, FlowAction.class)); MemberModifier.suppress(MemberMatcher.method(LldpFlowManager.class, "createLldpReplyToControllerFlow")); when(lldpFlowManager.writeDataTransaction(any(NodeId.class), any(FlowBuilder.class), any(FlowAction.class))).thenReturn(true); NodeId nodeId = mock(NodeId.class); lldpFlowManager.pushFlow(nodeId, FlowAction.ADD_FLOW); Mockito.verify(lldpFlowManager).writeDataTransaction(any(NodeId.class), any(FlowBuilder.class), any(FlowAction.class)); }