tests that the mongo exception caused by the collection gets thrown from the knowledgebase . concode_field_sep List<Indication> indications concode_elem_sep FailureCause mockedCause concode_elem_sep MongoDBKnowledgeBase kb concode_elem_sep int PORT concode_elem_sep JacksonDBCollection<FailureCause,String> collection concode_elem_sep Indication indication concode_elem_sep Statistics mockedStatistics concode_elem_sep JacksonDBCollection<Statistics,String> statisticsCollection concode_field_sep void testGetCauseNames concode_elem_sep void testGetStatistics concode_elem_sep void testFindOneCause concode_elem_sep void setUp concode_elem_sep void testSaveCause concode_elem_sep void testAddCause
void function ( ) { when ( collection . find ( Matchers . < DBObject > any ( ) , Matchers . < DBObject > any ( ) ) ) . thenThrow ( MongoException . class ) ; kb . getCauseNames ( ) ; }