mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/observation/TestGuiObservation.java
@Test
    public void testCreateGuiObs()
    {
        Observation obs = mock(Observation.class);
        
        List<Boolean> foundList = new ArrayList<>();
        foundList.add(true);
        foundList.add(true);
        foundList.add(false);

        List<ObservationSubTypeEnum> typeList = new ArrayList<>();
        typeList.add(ObservationSubTypeEnum.DIGITAL_MEDIA);
        typeList.add(ObservationSubTypeEnum.DETECTION);
        typeList.add(null);
        
        List<RelatedObservationIdentity> obsReferences = makeListOfRelatedObservation(foundList, typeList);
        
        m_SUT = new GuiObservation(obs, obsReferences);
        
        assertThat(m_SUT.getObservation(), is(obs));
        assertThat(m_SUT.getRelatedObservationModels().get(0).getObservationSubType(), 
                is(ObservationSubTypeEnum.DIGITAL_MEDIA));

        assertThat(m_SUT.getRelatedObservationModels().get(0).isFoundInObsStore(), is(true));
        
        assertThat(m_SUT.getRelatedObservationModels().get(1).getObservationSubType(), 
                is(ObservationSubTypeEnum.DETECTION));

        assertThat(m_SUT.getRelatedObservationModels().get(1).isFoundInObsStore(), is(true));
        
        assertThat(m_SUT.getRelatedObservationModels().get(2).getObservationSubType(), 
                nullValue());
        assertThat(m_SUT.getRelatedObservationModels().get(2).isFoundInObsStore(), is(false));
    }
/**
     * Verify that once a GUI observation is created that the appropriate data
     * is able to be pulled back out of the object.
     */
Verify that once a GUI observation is created that the appropriate data
is able to be pulled back out of the object.
Verify that once a GUI observation is created that the appropriate data is able to be pulled back out of the object .
@Test
    public void testCreateGuiObs()
    {
        Observation obs = mock(Observation.class);
        List<Boolean> foundList = new ArrayList<>();
        foundList.add(true);
        foundList.add(true);
        foundList.add(false);
        List<ObservationSubTypeEnum> typeList = new ArrayList<>();
        typeList.add(ObservationSubTypeEnum.DIGITAL_MEDIA);
        typeList.add(ObservationSubTypeEnum.DETECTION);
        typeList.add(null);
        List<RelatedObservationIdentity> obsReferences = makeListOfRelatedObservation(foundList, typeList);
        m_SUT = new GuiObservation(obs, obsReferences);
        assertThat(m_SUT.getObservation(), is(obs));
        assertThat(m_SUT.getRelatedObservationModels().get(0).getObservationSubType(), 
                is(ObservationSubTypeEnum.DIGITAL_MEDIA));
        assertThat(m_SUT.getRelatedObservationModels().get(0).isFoundInObsStore(), is(true));
        assertThat(m_SUT.getRelatedObservationModels().get(1).getObservationSubType(), 
                is(ObservationSubTypeEnum.DETECTION));
        assertThat(m_SUT.getRelatedObservationModels().get(1).isFoundInObsStore(), is(true));
        assertThat(m_SUT.getRelatedObservationModels().get(2).getObservationSubType(), 
                nullValue());
        assertThat(m_SUT.getRelatedObservationModels().get(2).isFoundInObsStore(), is(false));
    }
@ Test public void testCreateGuiObs ( ) { Observation obs = mock ( Observation . class ) ; List < Boolean > foundList = new ArrayList < > ( ) ; foundList . add ( true ) ; foundList . add ( true ) ; foundList . add ( false ) ; List < ObservationSubTypeEnum > typeList = new ArrayList < > ( ) ; typeList . add ( ObservationSubTypeEnum . DIGITAL_MEDIA ) ; typeList . add ( ObservationSubTypeEnum . DETECTION ) ; typeList . add ( null ) ; List < RelatedObservationIdentity > obsReferences = makeListOfRelatedObservation ( foundList , typeList ) ; m_SUT = new GuiObservation ( obs , obsReferences ) ; assertThat ( m_SUT . getObservation ( ) , is ( obs ) ) ; assertThat ( m_SUT . getRelatedObservationModels ( ) . get ( 0 ) . getObservationSubType ( ) , is ( ObservationSubTypeEnum . DIGITAL_MEDIA ) ) ; assertThat ( m_SUT . getRelatedObservationModels ( ) . get ( 0 ) . isFoundInObsStore ( ) , is ( true ) ) ; assertThat ( m_SUT . getRelatedObservationModels ( ) . get ( 1 ) . getObservationSubType ( ) , is ( ObservationSubTypeEnum . DETECTION ) ) ; assertThat ( m_SUT . getRelatedObservationModels ( ) . get ( 1 ) . isFoundInObsStore ( ) , is ( true ) ) ; assertThat ( m_SUT . getRelatedObservationModels ( ) . get ( 2 ) . getObservationSubType ( ) , nullValue ( ) ) ; assertThat ( m_SUT . getRelatedObservationModels ( ) . get ( 2 ) . isFoundInObsStore ( ) , is ( false ) ) ; }
Verify that once a GUI observation is created that the appropriate data
 is able to be pulled back out of the object.
Verify that once a GUI observation is created that the appropriate data is able to be pulled back out of the object .