### Question:
Match { public List<Message> getUpdates() { return Collections.unmodifiableList(updates); } Match(String name, List<String> matchInfo); String getName(); List<Message> getUpdates();  }### Answer:
@Test public void testGetUpdates() { List<String> arg1 = Arrays.asList(DATA1); instance = new Match(MATCH_NAME, arg1); List<Message> results = instance.getUpdates(); assertEquals(1, results.size()); final long expectedTime = 55500; Message result = results.get(0); assertEquals(expectedTime, result.getTime()); assertEquals(UPDATE_TEXT, result.getMessageText()); assertEquals(MATCH_NAME, result.getName()); }