MessageCenterResolver extends UrbanAirshipResolver { int markMessagesReadOrigin(@NonNull Set<String> messageIds) { ContentValues values = new ContentValues(); values.put(MessageCenterDataManager.MessageTable.COLUMN_NAME_UNREAD_ORIG, false); return this.updateMessages(messageIds, values); } MessageCenterResolver(Context context);   }
@Test public void testMarkMessagesReadOrigin() { Set<String> keys = new HashSet<>(); keys.add("1_message_id"); keys.add("2_message_id"); keys.add("6_message_id"); int updated = resolver.markMessagesReadOrigin(keys); assertEquals(keys.size(), updated); assertEquals(10, resolver.getMessages().size()); }