### Question:
ResourceUtil { public static List<String> getPropertyStrings(Resource resource, String namePattern) { String[] vals = resource.getValueMap().get(namePattern, String[].class); return vals != null ? Arrays.asList(vals) : Collections.EMPTY_LIST; } private  ResourceUtil(); static boolean getPropertyBoolean(Resource resource, String namePattern); static Calendar getPropertyCalendar(Resource resource, String namePattern); static Date getPropertyDate(Resource resource, String namePattern); static BigDecimal getPropertyDecimal(Resource resource, String namePattern); static Double getPropertyDouble(Resource resource, String namePattern); static Long getPropertyLong(Resource resource, String namePattern); static Resource getPropertyReference(Resource resource, String namePattern); static String getPropertyString(Resource resource, String namePattern); static List<String> getPropertyStrings(Resource resource, String namePattern);  }### Answer:
@Test public void testGetPropertyStrings() { assertEquals(Arrays.asList("a", "bcd", "e"), ResourceUtil.getPropertyStrings(resource, "strings_prop")); }
@Test public void testGetPropertyStringsReturnsListForSingleValue() { assertEquals(Collections.singletonList("prop val"), ResourceUtil.getPropertyStrings(resource, "string_prop")); }
@Test public void testGetPropertyStringsReturnsEmptyListIfPropertyNotFound() { assertEquals(new ArrayList<>(), ResourceUtil.getPropertyStrings(resource, "bogus_prop_name")); }