@Test
public void testGetSwitchLacpGroup()
{

    SwitchLacpGroup switchLacpGroup_Obj = null;
    try
    {
        if ( listOfLacpGroupNames == null )
        {
            listOfLacpGroupNames = cumulusTorSwitchService_Obj.getSwitchLacpGroups( switchNode_Obj );
            assertNotNull( "listOfLacpGroupNames is null. No Lacp Groups.", listOfLacpGroupNames );
        }
        else
        {
            if ( listOfLacpGroupNames != null && !listOfLacpGroupNames.isEmpty() )
            {
                logger.info( "Size of list of SwitchLacpGroups: " + listOfLacpGroupNames.size() );
                for ( int i = 0; i < listOfLacpGroupNames.size(); i++ )
                {
                    switchLacpGroup_Obj =
                        cumulusTorSwitchService_Obj.getSwitchLacpGroup( switchNode_Obj,
                                                                        listOfLacpGroupNames.get( i ) );
                    assertNotNull( "Switch Lacp Group is null", switchLacpGroup_Obj );
                    if ( switchLacpGroup_Obj != null )
                    {
                        logger.info( "Object not null." );
                        logger.info( "Mode: " + switchLacpGroup_Obj.getMode() );
                        logger.info( "Name: " + switchLacpGroup_Obj.getName() );
                        logger.info( "Class: " + switchLacpGroup_Obj.getClass().toString() );
                        List<String> ports = switchLacpGroup_Obj.getPorts();
                        logger.info( "Ports below (size:" + ports.size() + ") of ports List" );
                        for ( int j = 0; j < ports.size(); j++ )
                        {
                            logger.info( ports.get( j ) );
                        }
                    }
                }
            }
            else
            {
                logger.info( "List of switch lacp groups is either null or empty" );
            }
        }
    }
    catch ( Exception e )
    {
        logger.info( "Error while getting a single switch lacp group" );
        if ( PRINT_STACK_TRACE )
            logger.debug( e.getStackTrace() );
        if ( FAIL_ON_EXCEPTION )
        {
            fail();
        }
    }
}