edu.udayton.udri.asset.novatel/test/edu/udayton/udri/asset/novatel/TestNovatelAsset.java
@Test
    public void testInitializeStatus()
    {        
        ArgumentCaptor<ComponentStatus> statusCap = ArgumentCaptor.forClass(ComponentStatus.class);
        verify(m_NovatelStatusService, times(2)).getStatus(Mockito.any(Observation.class), statusCap.capture());
        verify(m_TimeChangeService).getComponentStatus();
        
        //inspect
        assertThat(statusCap.getAllValues().size(), is(2));
        Map<ComponentTypeEnum, SummaryStatusEnum> statMap = new HashMap<>();
        for (ComponentStatus stat: statusCap.getAllValues())
        {
            statMap.put(stat.getComponent().getType(), stat.getStatus().getSummary());
        }
        assertThat(statMap.get(ComponentTypeEnum.SOFTWARE_UNIT), is(SummaryStatusEnum.OFF));
        assertThat(statMap.get(ComponentTypeEnum.NAVIGATION), is(SummaryStatusEnum.OFF));
    }
/**
     * Verify initialization of the asset's status to off for all components during the 
     * Initialize call.
     */
Verify initialization of the asset's status to off for all components during the
Initialize call.
Verify initialization of the asset ' s status to off for all components during the Initialize call .
@Test
    public void testInitializeStatus()
    {        
        ArgumentCaptor<ComponentStatus> statusCap = ArgumentCaptor.forClass(ComponentStatus.class);
        verify(m_NovatelStatusService, times(2)).getStatus(Mockito.any(Observation.class), statusCap.capture());
        verify(m_TimeChangeService).getComponentStatus();
        assertThat(statusCap.getAllValues().size(), is(2));
        Map<ComponentTypeEnum, SummaryStatusEnum> statMap = new HashMap<>();
        for (ComponentStatus stat: statusCap.getAllValues())
        {
            statMap.put(stat.getComponent().getType(), stat.getStatus().getSummary());
        }
        assertThat(statMap.get(ComponentTypeEnum.SOFTWARE_UNIT), is(SummaryStatusEnum.OFF));
        assertThat(statMap.get(ComponentTypeEnum.NAVIGATION), is(SummaryStatusEnum.OFF));
    }
@ Test public void testInitializeStatus ( ) { ArgumentCaptor < ComponentStatus > statusCap = ArgumentCaptor . forClass ( ComponentStatus . class ) ; verify ( m_NovatelStatusService , times ( 2 ) ) . getStatus ( Mockito . any ( Observation . class ) , statusCap . capture ( ) ) ; verify ( m_TimeChangeService ) . getComponentStatus ( ) ; assertThat ( statusCap . getAllValues ( ) . size ( ) , is ( 2 ) ) ; Map < ComponentTypeEnum , SummaryStatusEnum > statMap = new HashMap < > ( ) ; for ( ComponentStatus stat : statusCap . getAllValues ( ) ) { statMap . put ( stat . getComponent ( ) . getType ( ) , stat . getStatus ( ) . getSummary ( ) ) ; } assertThat ( statMap . get ( ComponentTypeEnum . SOFTWARE_UNIT ) , is ( SummaryStatusEnum . OFF ) ) ; assertThat ( statMap . get ( ComponentTypeEnum . NAVIGATION ) , is ( SummaryStatusEnum . OFF ) ) ; }
Verify initialization of the asset's status to off for all components during the
 Initialize call.
Verify initialization of the asset ' s status to off for all components during the Initialize call .
//inspect