### Question:
AbstractSearchResultFactoryImpl implements SearchResultFactory { protected void populateServiceAlerts(Set<String> serviceAlertDescriptions, List<ServiceAlertBean> serviceAlertBeans) { populateServiceAlerts(serviceAlertDescriptions, serviceAlertBeans, true); } AbstractSearchResultFactoryImpl();   }### Answer:
@Test public void testPopulateServiceAlertsSetOfStringListOfServiceAlertBeanNulls() { Set<String> serviceAlertDescriptions = null; List<ServiceAlertBean> serviceAlertBeans = null; populateServiceAlerts(serviceAlertDescriptions, serviceAlertBeans); }
@Test public void testPopulateServiceAlertsSetOfStringListOfServiceAlertBean() { populateServiceAlerts(serviceAlertDescriptions, serviceAlertBeans); assertEquals(1, serviceAlertDescriptions.size()); String d = (String) serviceAlertDescriptions.toArray()[0]; assertTrue("line one<br/>line two".equals(d)); }
@Test public void testPopulateServiceAlertsSetOfStringListOfServiceAlertBeanBoolean() { populateServiceAlerts(serviceAlertDescriptions, serviceAlertBeans, false); assertEquals(1, serviceAlertDescriptions.size()); String d = (String) serviceAlertDescriptions.toArray()[0]; assertTrue("line one\nline two".equals(d)); }