Buggy code:
@ RunWith ( PaxExam . class ) @ ExamReactorStrategy ( PerSuite . class ) @ ExamFactory ( MotechNativeTestContainerFactory . class ) public class ContentUploadCsvHandlerIT extends BasePaxIT { @ Inject private ContentUploadCsvService contentUploadCsvService ; @ Inject private ContentUploadService contentUploadService ; @ Inject private BulkUploadErrLogService bulkUploadErrLogService ; private ContentUploadCsvHandler contentUploadCsvHandler ; @ Before public void setUp ( ) { } @ Rule public ExpectedException thrown = ExpectedException . none ( ) ; @ Test public void testContentUploadValidData ( ) { ContentUploadCsv contentUploadCsv1 = new ContentUploadCsv ( ) ; contentUploadCsv1 . setIndex ( 1L ) ; contentUploadCsv1 . setContentId ( "12" ) ; contentUploadCsv1 . setCircleCode ( "CircleCode" ) ; contentUploadCsv1 . setLanguageLocationCode ( "123" ) ; contentUploadCsv1 . setContentName ( "Content" ) ; contentUploadCsv1 . setContentType ( "PROMPT" ) ; contentUploadCsv1 . setContentFile ( "NewFile" ) ; contentUploadCsv1 . setCardNumber ( "10" ) ; contentUploadCsv1 . setContentDuration ( "120" ) ; contentUploadCsv1 . setModifiedBy ( "Etasha" ) ; contentUploadCsv1 . setOwner ( "Etasha" ) ; contentUploadCsv1 . setCreator ( "Etasha" ) ; ContentUploadCsv contentUploadCsv2 = new ContentUploadCsv ( ) ; contentUploadCsv2 . setIndex ( 2L ) ; contentUploadCsv2 . setContentId ( "22" ) ; contentUploadCsv2 . setCircleCode ( "CircleCode" ) ; contentUploadCsv2 . setLanguageLocationCode ( "123" ) ; contentUploadCsv2 . setContentName ( "Content" ) ; contentUploadCsv2 . setContentType ( "CONTENT" ) ; contentUploadCsv2 . setContentFile ( "NewFile" ) ; contentUploadCsv2 . setCardNumber ( "11" ) ; contentUploadCsv2 . setContentDuration ( "120" ) ; contentUploadCsv2 . setModifiedBy ( "Etasha" ) ; contentUploadCsv2 . setOwner ( "Etasha" ) ; contentUploadCsv2 . setCreator ( "Etasha" ) ; ContentUploadCsv contentUploadCsv3 = new ContentUploadCsv ( ) ; contentUploadCsv3 . setIndex ( 3L ) ; contentUploadCsv3 . setContentId ( "33" ) ; contentUploadCsv3 . setCircleCode ( "CircleCode" ) ; contentUploadCsv3 . setLanguageLocationCode ( "123" ) ; contentUploadCsv3 . setContentName ( "Content" ) ; contentUploadCsv3 . setContentType ( "CONTENTS" ) ; contentUploadCsv3 . setContentFile ( "NewFile" ) ; contentUploadCsv3 . setCardNumber ( "12" ) ; contentUploadCsv3 . setContentDuration ( "120" ) ; contentUploadCsv3 . setModifiedBy ( "Etasha" ) ; contentUploadCsv3 . setOwner ( "Etasha" ) ; contentUploadCsv3 . setCreator ( "Etasha" ) ; ContentUploadCsv contentUploadCsv4 = new ContentUploadCsv ( ) ; contentUploadCsv4 . setIndex ( 4L ) ; contentUploadCsv4 . setContentId ( "22" ) ; contentUploadCsv4 . setCircleCode ( "CircleCode" ) ; contentUploadCsv4 . setLanguageLocationCode ( "124" ) ; contentUploadCsv4 . setContentName ( "Content" ) ; contentUploadCsv4 . setContentType ( "CONTENT" ) ; contentUploadCsv4 . setContentFile ( "NewFile" ) ; contentUploadCsv4 . setCardNumber ( "10" ) ; contentUploadCsv4 . setContentDuration ( "120" ) ; contentUploadCsv4 . setModifiedBy ( "Etasha" ) ; contentUploadCsv4 . setOwner ( "Etasha" ) ; contentUploadCsv4 . setCreator ( "Etasha" ) ; ContentUploadCsv contentUploadCsvDb1 = contentUploadCsvService . createContentUploadCsv ( contentUploadCsv1 ) ; ContentUploadCsv contentUploadCsvDb2 = contentUploadCsvService . createContentUploadCsv ( contentUploadCsv2 ) ; ContentUploadCsv contentUploadCsvDb3 = contentUploadCsvService . createContentUploadCsv ( contentUploadCsv3 ) ; ContentUploadCsv contentUploadCsvDb4 = contentUploadCsvService . createContentUploadCsv ( contentUploadCsv4 ) ; Map < String , Object > parameters = new HashMap < > ( ) ; List < Long > uploadedIds = new ArrayList < Long > ( ) ; uploadedIds . add ( contentUploadCsvDb1 . getId ( ) ) ; uploadedIds . add ( contentUploadCsvDb2 . getId ( ) ) ; uploadedIds . add ( contentUploadCsvDb3 . getId ( ) ) ; uploadedIds . add ( contentUploadCsvDb4 . getId ( ) ) ; parameters . put ( "csv-import.created_ids" , uploadedIds ) ; parameters . put ( "csv-import.filename" , "ContentUpload.csv" ) ; MotechEvent motechEvent = new MotechEvent ( "ContentUploadCsv.csv_success" , parameters ) ; contentUploadCsvHandler . mobileKunjiContentUploadSuccess ( motechEvent ) ; ContentUpload contentUpload = contentUploadService . findRecordByContentId ( 12 ) ; assertNotNull ( contentUpload ) ; assertTrue ( ( 12 == ( contentUpload . getContentId ( ) ) ) ) ; assertEquals ( "CircleCode" , contentUpload . getCircleCode ( ) ) ; assertTrue ( ( 123 == ( contentUpload . getLanguageLocationCode ( ) ) ) ) ; assertEquals ( "Content" , contentUpload . getContentName ( ) ) ; assertEquals ( PROMPT , contentUpload . getContentType ( ) ) ; assertEquals ( "NewFile" , contentUpload . getContentFile ( ) ) ; <START_BUG> assertTrue ( ( 10 == ( contentUpload . getCardNumber ( ) ) ) ) ; <END_BUG> assertTrue ( ( 120 == ( contentUpload . getContentDuration ( ) ) ) ) ; assertEquals ( "Etasha" , contentUpload . getCreator ( ) ) ; assertEquals ( "Etasha" , contentUpload . getModifiedBy ( ) ) ; assertEquals ( "Etasha" , contentUpload . getOwner ( ) ) ; List < ContentUploadCsv > listContentUploadCsv = contentUploadCsvService . retrieveAllFromCsv ( ) ; assertTrue ( ( ( listContentUploadCsv . size ( ) ) == 0 ) ) ; } @ Test public void testContentUploadNoContentId ( ) throws DataValidationException { } @ Test public void testContentUploadNoCircleCode ( ) throws DataValidationException { } @ Test public void testContentUploadNoLangLocCode ( ) throws DataValidationException { } @ Test public void testContentUploadNoContentName ( ) throws DataValidationException { } @ Test public void testContentUploadNoContentType ( ) throws DataValidationException { } @ Test public void testContentUploadNoContentFile ( ) throws DataValidationException { } @ Test public void testContentUploadNoCardNumber ( ) throws DataValidationException { } @ Test public void testContentUploadNoContentDuration ( ) throws DataValidationException { } }

Fix:
assertTrue ( "10" . equals ( contentUpload . getCardNumber ( ) ) ) ;