public void testGetSendSyncModel() { SendSyncModel sendSyncModel = syncManager.getSendSyncModel(); for (TransferChildTable transferChildTable : sendSyncModel.getTransferChildTableList()) { Boolean found = false; for (TransferChildTable expectedTranferChildTable : expectedSyncModel.getTransferChildTableList()) { if (CompareUtils.areTwoTransferChildTableTheSame( transferChildTable, expectedTranferChildTable)) found = true; } if (!found) { fail("Transfered childs are diffrent then expected"); } } Boolean found = false; for (TransferTableFieldFilling transferTableFieldFilling : sendSyncModel.getTransferTableFieldFillingList()) { found = false; for (TransferTableFieldFilling expectedTranferFieldFilling : expectedSyncModel.getTransferTableFieldFillingList()) { if (CompareUtils.areTwoTransferFieldFillingsTheSame( transferTableFieldFilling, expectedTranferFieldFilling)) found = true; } if (!found) { fail("Transfered tableFieldFillinga are diffrent then expected"); } } if (!found) { fail("Transfered tableFieldFillinga are diffrent then expected"); } }