@Test
public void addFruIDtoStorageControllerEventsTest()
{

    List<Event> events = new ArrayList<Event>();
    List<Event> storageControllerEventsFruID = new ArrayList<Event>();
    Event event = new Event();
    Body body = new Body();
    Header header = new Header();
    try
    {
        // Construct Storage Controllers Event for Testing
        body.setDescription( "Storage Adapter for the rack EVO:RACK node N3, Patsburg 4-Port SATA Storage Control Unit operational status is down" );
        Map<String, String> data = new HashMap<String, String>();
        data.put( "unit", "DISCRETE" );
        data.put( "eventName", "STORAGE_CONTROLLER_DOWN" );
        body.setData( data );
        Map<EventComponent, String> compIdentifier = new HashMap<EventComponent, String>();
        compIdentifier.put( EventComponent.STORAGE_CONTROLLER, "vmhba0 Patsburg 4-Port SATA Storage Control Unit" );
        compIdentifier.put( EventComponent.SERVER, "N5" );
        header.addComponentIdentifier( compIdentifier );
        header.setAgent( "HMS" );
        header.setEventName( EventCatalog.STORAGE_CONTROLLER_DOWN );
        header.setSeverity( EventSeverity.ERROR );
        header.setVersion( "1.0" );
        event.setBody( body );
        event.setHeader( header );
        events.add( event );
        // Construct Storage Controller FRU Information
        List<StorageController> StorageControllerList = new ArrayList<StorageController>();
        StorageController storageControllerInfo = new StorageController();
        ComponentIdentifier componentIdentifier = new ComponentIdentifier();
        componentIdentifier.setManufacturer( "Intel Corporation" );
        componentIdentifier.setProduct( "Patsburg 4-Port SATA Storage Control Unit" );
        storageControllerInfo.setComponentIdentifier( componentIdentifier );
        storageControllerInfo.setDeviceName( "vmhba0" );
        storageControllerInfo.setNumOfStorageDevicesConnected( 1 );
        storageControllerInfo.setDriver( "ahci" );
        storageControllerInfo.setFirmwareVersion( "23fh.56" );
        storageControllerInfo.setFruId( "944039473-157926983" );
        storageControllerInfo.setOperationalStatus( "offline" );
        StorageControllerList.add( storageControllerInfo );
        storageControllerEventsFruID =
            FruIdEventsHelperUtil.addFruIDtoStorageControllerEvents( events, StorageControllerList );
        Map<String, String> eventData = storageControllerEventsFruID.get( 0 ).getBody().getData();
        assertNotNull( eventData.get( "fruID" ) );
    }
    catch ( Exception e )
    {
        logger.info( "Integrate FRU ID with Storage Controller Events Test Failed" );
    }
}