LldpFlowManager extends AbstractFlowManager implements TopologyListener { @Override protected String createFlowName() { StringBuilder sb = new StringBuilder(); sb.append(OFRendererConstants.LLDP_REPLY_TO_CONTROLLER_FLOW_NAME); sb.append(OFRendererConstants.ETHERNET_TYPE).append(flowCookie.get()); return sb.toString(); } LldpFlowManager(final DataBroker dataBroker,
                    final PipelineManager pipelineManager,
                    final NetworkEventsService networkEventsService); void start(); @Override void onSwitchAdd(NodeId switchAdded); @Override void onSwitchRemoved(NodeId switchRemoved);  }
@Test public void testCreateFlowName() throws Exception { LldpFlowManager lldpFlowManager = new LldpFlowManager( mock(DataBroker.class), mock(PipelineManager.class), mock(NetworkEventsService.class)); String flowName = lldpFlowManager.createFlowName(); assertTrue(flowName.contains(LLDP_EXPECTED_STRING)); }