@Test
public void testGetOspf()
{

    SwitchOspfConfig ospfConfig_Obj = null;
    try
    {
        ospfConfig_Obj = cumulusTorSwitchService_Obj.getOspf( switchNode_Obj );
        assertNotNull( "The ospfConfig is null", ospfConfig_Obj );
        if ( ospfConfig_Obj != null )
        {
            logger.info( "class name: " + ospfConfig_Obj.getClass().getName() );
            SwitchOspfGlobalConfig globalConfig = ospfConfig_Obj.getGlobal();
            assertNotNull( "The global config is null", globalConfig );
            logger.info( "Router Id: " + globalConfig.getRouterId() );
            logger.info( "Default Mode: " + globalConfig.getDefaultMode() );
            List<SwitchOspfNetworkConfig> networkConfigList = globalConfig.getNetworks();
            List<SwitchOspfInterfaceConfig> interfaceConfigList = globalConfig.getInterfaces();
            assertNotNull( "The network config list is null", networkConfigList );
            assertNotNull( "The interface config list is null", interfaceConfigList );
            for ( int i = 0; i < networkConfigList.size(); i++ )
            {
                logger.info( "Network: " + networkConfigList.get( i ).getNetwork() );
                logger.info( "Area: " + networkConfigList.get( i ).getArea() );
            }
            for ( int i = 0; i < interfaceConfigList.size(); i++ )
            {
                logger.info( "Name: " + interfaceConfigList.get( i ).getName() );
                InterfaceMode interfaceMode = interfaceConfigList.get( i ).getMode();
                logger.info( "InterfaceMode name: " + interfaceMode.getClass().getName() );
            }
        }
    }
    catch ( Exception e )
    {
        logger.info( "Error while getting Ospf information: " + e.toString() );
        if ( PRINT_STACK_TRACE )
            logger.debug( e.getStackTrace() );
        if ( FAIL_ON_EXCEPTION )
            fail();
    }
}