### Question:
GeneralMessageCollector extends AbstractActivityCollector implements IGeneralMessageListener { @Handler @Override public void onWarningMessage(WarningMessage message) { ActivityItem item = ActivityItem.create() .setTitle(message.getTitle()) .setDescription(message.getDescription()) .setType(ActivityType.WARNING); getActivityLogger().addActivityItem(item); } @Inject protected  GeneralMessageCollector(ActivityLogger activityLogger); @Handler @Override void onInformationMessage(InformationMessage message); @Handler @Override void onWarningMessage(WarningMessage message);  }### Answer:
@Test public void testOnWarningMessage() { WarningMessage msg = new WarningMessage("title", "description"); collector.onWarningMessage(msg); CollectorTestUtils.captureAddActivityItem(ActivityType.WARNING, activityLogger); }