question: public void testMomentWithNoTypeErrorHandling ( ) { String xml = "" ; xml += createStartMissionXml ( "start" , "Name" ) ; xml += "<moment " + "id='start' >" ; xml += createNextMomentXml ( "start" ) ; xml += createLengthMinutesXml ( 0.25 ) ; xml += createEndMomentXml ( ) ; xml += createEndMissionXml ( ) ; InputStream momentInputStream = new ByteArrayInputStream ( xml . getBytes ( ) ) ; mMission = new Mission ( mMissionData ) ; boolean didMissionParseFail = false ; try { mMission . readMoments ( momentInputStream ) ; } catch ( MissionParseException e ) { didMissionParseFail = true ; } Assert . assertEquals ( true , didMissionParseFail ) ; }
target:  Test for correct error handling with a moment has no 'type' attribute.