@Test
public void testGetSwitchPortStatus()
{

    SwitchPort switchPort_Obj = null;
    try
    {
        if ( listOfSwitchPorts == null )
        {
            listOfSwitchPorts = cumulusTorSwitchService_Obj.getSwitchPortList( switchNode_Obj );
            assertNotNull( "List of switch ports is null", listOfSwitchPorts );
        }
        logger.info( "List of Switchports exist. Check each switch port." );
        logger.info( "size of switchports:: " + listOfSwitchPorts.size() );
        for ( int i = 0; i < listOfSwitchPorts.size(); i++ )
        {
            switchPort_Obj =
                cumulusTorSwitchService_Obj.getSwitchPort( switchNode_Obj, listOfSwitchPorts.get( i ) );
            if ( switchPort_Obj != null )
            {
                assertNotNull( "The switchPort status is null", switchPort_Obj.getStatus() );
            }
        }
    }
    catch ( Exception e )
    {
        logger.info( "Error while getting switch port status" );
        if ( PRINT_STACK_TRACE )
            logger.debug( e.getStackTrace() );
        if ( FAIL_ON_EXCEPTION )
            fail();
    }
}