@Test
public void getComponentEvents_monitor_HMS_On_STARTED()
    throws Exception
{

    insertNodeInNodeMap( getServerNode() );
    addBoardServiceForNode();
    server = initMocks( AbstractLifeCycle.STARTED );
    ComponentEventRestService restService = new ComponentEventRestService();
    List<Event> hmsEvents = restService.getComponentEvents();
    assertNotNull( hmsEvents );
    assertTrue( hmsEvents.size() > 0 );
    Event event = hmsEvents.get( 0 );
    assertNotNull( event );
    Header header = event.getHeader();
    assertEquals( "HMS", header.getAgent() );
    assertEquals( "HMS_AGENT_UP", header.getEventName().name() );
    assertEquals( "NORMAL", header.getEventType().name() );
    assertEquals( "[MANAGEMENT, SOFTWARE]", header.getEventCategoryList().toString() );
    assertEquals( "INFORMATIONAL", header.getSeverity().name() );
    // assertEquals("?", header.getComponentIdentifier());
    Body body = event.getBody();
    Map<String, String> data = body.getData();
    assertEquals( "DISCRETE", data.get( "unit" ) );
    assertEquals( "HMS_OOBAGENT_STATUS", data.get( "eventId" ) );
    assertEquals( "HMS Agent is up", data.get( "value" ) );
    // assertEquals("Hms Agent is Up", data.get("value"));
    assertEquals( "HMS_AGENT_UP", data.get( "eventName" ) );
    assertEquals( "HMS Agent is up - rack {RACK_NAME}", body.getDescription() );
    resetMocks( server );
}