@Test
public void testGetSwitchPort()
{

    SwitchPort switchPort_Obj = null;
    try
    {
        if ( listOfSwitchPorts == null )
        {
            listOfSwitchPorts = cumulusTorSwitchService_Obj.getSwitchPortList( switchNode_Obj );
            assertNotNull( "The list of switch ports is null", listOfSwitchPorts );
        }
        logger.info( "List of Switchports exist. Check each switch port." );
        logger.info( "Size of list of Switchports: " + listOfSwitchPorts.size() );
        for ( int i = 0; i < listOfSwitchPorts.size(); i++ )
        {
            logger.info( "from list, get each i: " + i + " list of switchports value: "
                + listOfSwitchPorts.get( i ) );
            switchPort_Obj =
                cumulusTorSwitchService_Obj.getSwitchPort( switchNode_Obj, listOfSwitchPorts.get( i ) );
            if ( switchPort_Obj != null )
            {
                assertNotNull( switchPort_Obj.getType() );
                assertNotNull( switchPort_Obj.getStatus() );
                assertNotNull( switchPort_Obj.getStatistics() );
                logger.info( "i: " + i + " objMap: " + switchPort_Obj.getObjMap() );
                assertNotNull( switchPort_Obj.getObjMap() );
                assertNotNull( switchPort_Obj.getName() );
                assertNotNull( switchPort_Obj.getMtu() );
                assertNotNull( switchPort_Obj.getMacAddress() );
                logger.info( "i: " + i + " linkedPort: " + switchPort_Obj.getLinkedMacAddresses() );
                logger.info( "i: " + i + " MacAddress: " + switchPort_Obj.getLinkedMacAddresses() );
                logger.info( "i: " + i + " IPAddress: " + switchPort_Obj.getIpAddress() );
                assertNotNull( switchPort_Obj.getIfNumber() );
                assertNotNull( switchPort_Obj.getFlags() );
                assertNotNull( switchPort_Obj.getClass() );
            }
        }
    }
    catch ( Exception e )
    {
        logger.info( "Error while getting switch port" );
        if ( PRINT_STACK_TRACE )
            logger.debug( e.getStackTrace() );
        if ( FAIL_ON_EXCEPTION )
            fail();
    }
}