@Test
public void testGetSwitchVlan()
{

    SwitchVlan switchVlan_Obj = null;
    try
    {
        if ( listOfVlansString == null )
        {
            listOfVlansString = cumulusTorSwitchService_Obj.getSwitchVlans( switchNode_Obj );
            assertNotNull( "The list of vlans (string) is null", listOfVlansString );
        }
        if ( listOfVlansString != null && !listOfVlansString.isEmpty() )
        {
            logger.info( "Size of list of vlans: " + listOfVlansString.size() );
            for ( int i = 0; i < listOfVlansString.size(); i++ )
            {
                switchVlan_Obj =
                    cumulusTorSwitchService_Obj.getSwitchVlan( switchNode_Obj, listOfVlansString.get( i ) );
                assertNotNull( "SwitchVlan object is null", switchVlan_Obj );
                if ( switchVlan_Obj != null )
                {
                    assertNotNull( switchVlan_Obj.getName() );
                    logger.info( "i: " + i + " id: " + switchVlan_Obj.getId() );
                    assertNotNull( switchVlan_Obj.getClass() );
                    logger.info( "i: " + i + " IPAddress: " + switchVlan_Obj.getIpAddress() );
                    logger.info( "i: " + i + " getMtu: " + switchVlan_Obj.getMtu() );
                    logger.info( "i: " + i + " getNetmask: " + switchVlan_Obj.getNetmask() );
                }
            }
        }
    }
    catch ( Exception e )
    {
        logger.info( "Error while getting a single vlan value" );
        if ( PRINT_STACK_TRACE )
            logger.debug( e.getStackTrace() );
        if ( FAIL_ON_EXCEPTION )
            fail();
    }
}