@Test
public void testFloodPacket_NullList() throws Exception {

    HashMap<String, List<NodeConnectorRef>> switchNodeConnectors = Mockito.mock(HashMap.class);
    when(switchNodeConnectors.get(any(String.class))).thenReturn(null);
    when(inventoryReader.getSwitchNodeConnectors()).thenReturn(switchNodeConnectors);
    packetDispatcher.floodPacket("", null, new NodeConnectorRef(InstanceIdentifier.create(NodeConnector.class)),
            new NodeConnectorRef(InstanceIdentifier.create(NodeConnector.class)));
    verify(inventoryReader, times(1)).setRefreshData(true);
    verify(inventoryReader, times(1)).readInventory();
    verify(packetProcessingService, times(0)).transmitPacket(any(TransmitPacketInput.class));
}