@Test
public void RMContextImplEventRunnable_sendAppEvent_should_not_failed_for_null_component_in_rmapp() {

    RMApp rmApp = mockRMApp("container_id_001", null, "project", "workflow", FinalApplicationStatus.SUCCEEDED);
    rmContextImplEventRunnable.sendAppEvent(applicationId, rmApp);
    verify(eventHandler).accept(any(Long.class), any(Header.class), argument.capture());
    ResourceManagerEventProtos.ApplicationEvent appEvent = argument.getValue();
    assertThat(appEvent.getAmContainerId()).isEqualTo("container_id_001");
    assertThat(appEvent.getTrackingUrl()).isEqualTo("");
    assertThat(appEvent.getProjectName()).isEqualTo("project");
    assertThat(appEvent.getWorkflowName()).isEqualTo("workflow");
    assertThat(appEvent.getFinalStatus()).isEqualTo("SUCCEEDED");
}